1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Remove secret from 'publicRuntimeConfig' example (#5759)

This commit is contained in:
Ståle Pettersen 2018-11-28 15:29:41 +01:00 committed by Tim Neutkens
parent af893bf740
commit 4594b7cb07

View file

@ -1444,11 +1444,11 @@ The `next/config` module gives your app access to runtime configuration stored i
// next.config.js
module.exports = {
serverRuntimeConfig: { // Will only be available on the server side
mySecret: 'secret'
mySecret: 'secret',
secondSecret: process.env.SECOND_SECRET // Pass through env variables
},
publicRuntimeConfig: { // Will be available on both server and client
staticFolder: '/static',
mySecret: process.env.MY_SECRET // Pass through env variables
}
}
```