Skip to content

Commit d8be2a0

Browse files
albinekbtimneutkens
authored andcommitted
Add example of process.env runtimeConfig (vercel#4759)
1 parent d51245b commit d8be2a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,8 @@ module.exports = {
13701370
mySecret: 'secret'
13711371
},
13721372
publicRuntimeConfig: { // Will be available on both server and client
1373-
staticFolder: '/static'
1373+
staticFolder: '/static',
1374+
mySecret: process.env.MY_SECRET // Pass through env variables
13741375
}
13751376
}
13761377
```

0 commit comments

Comments
 (0)