mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Add example of process.env runtimeConfig (#4759)
This commit is contained in:
parent
d51245b877
commit
d8be2a0379
|
@ -1370,7 +1370,8 @@ module.exports = {
|
||||||
mySecret: 'secret'
|
mySecret: 'secret'
|
||||||
},
|
},
|
||||||
publicRuntimeConfig: { // Will be available on both server and client
|
publicRuntimeConfig: { // Will be available on both server and client
|
||||||
staticFolder: '/static'
|
staticFolder: '/static',
|
||||||
|
mySecret: process.env.MY_SECRET // Pass through env variables
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue