From cfe748d4b5c1ec7ef9ec4adc4bec534a9616aed8 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Thu, 29 Mar 2018 10:17:44 +0200 Subject: [PATCH] Add note about getConfig --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index f42a28a8..aec3d472 100644 --- a/readme.md +++ b/readme.md @@ -1185,7 +1185,7 @@ module.exports = { ```js // pages/index.js import getConfig from 'next/config' -const {serverRuntimeConfig, publicRuntimeConfig} = getConfig() +const {serverRuntimeConfig, publicRuntimeConfig} = getConfig() // Only holds serverRuntimeConfig and publicRuntimeConfig from next.config.js nothing else. console.log(serverRuntimeConfig.mySecret) // Will only be available on the server side console.log(publicRuntimeConfig.staticFolder) // Will be available on both server and client