You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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
. SettingREACT_APP_BASENAME
becomes hard to do.The text was updated successfully, but these errors were encountered: