Commit 4594b7cb authored by Ståle Pettersen's avatar Ståle Pettersen Committed by Tim Neutkens

Remove secret from 'publicRuntimeConfig' example (#5759)

parent af893bf7
......@@ -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
}
}
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment