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

env value loading #10457

Closed
steveoh opened this issue Jan 28, 2021 · 0 comments
Closed

env value loading #10457

steveoh opened this issue Jan 28, 2021 · 0 comments

Comments

@steveoh
Copy link

steveoh commented Jan 28, 2021

Environment values that are set with an npm script like env-cmd -f ./.env.stage npm run build are overwritten if a .env.production file is present with different values.

possibly related to #9037

I am unsure how to use .env.development, .env.stage, and .env.production files effectively.

This is problematic for a few reasons but mainly since development and prod environments run on the root but staging runs on a /folder. Setting REACT_APP_BASENAME becomes hard to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant