1
0
Fork 0
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:
Albin Ekblom 2018-07-11 12:48:14 +02:00 committed by Tim Neutkens
parent d51245b877
commit d8be2a0379

View file

@ -1370,7 +1370,8 @@ module.exports = {
mySecret: 'secret'
},
publicRuntimeConfig: { // Will be available on both server and client
staticFolder: '/static'
staticFolder: '/static',
mySecret: process.env.MY_SECRET // Pass through env variables
}
}
```