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:
parent
af893bf740
commit
4594b7cb07
|
@ -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
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue