Commit d8be2a03 authored by Albin Ekblom's avatar Albin Ekblom Committed by Tim Neutkens

Add example of process.env runtimeConfig (#4759)

parent d51245b8
...@@ -1370,7 +1370,8 @@ module.exports = { ...@@ -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
} }
} }
``` ```
......
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