Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of process.env runtimeConfig #4759

Merged
merged 2 commits into from
Jul 11, 2018
Merged

Add example of process.env runtimeConfig #4759

merged 2 commits into from
Jul 11, 2018

Conversation

albinekb
Copy link
Contributor

No description provided.

readme.md Outdated
@@ -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 trough env variables
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass through env variables

@timneutkens timneutkens merged commit d8be2a0 into vercel:canary Jul 11, 2018
@albinekb albinekb deleted the patch-1 branch July 11, 2018 11:06
@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants