-
Notifications
You must be signed in to change notification settings - Fork 68
Feature request: Support .env*.local
as overrides
#32
Comments
From reading the source code, what happens when there are both From my understanding, the development and production files are mutually exclusive. So that means that we would have to diverge slightly from the create-react-app's behaviour of the following:
Instead we would probably have to go with
|
+1 for this. I think CRA do the go job of priority of .env https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#what-other-env-files-can-be-used |
To follow the convention set in
create-react-app
, I'm proposing the following additional environment files:.env.local
which overrides.env
env.development.local
which overrides.env.development
.env.production.local
which overrides.env.production.local
These would not be mutually exclusive so the following
Would result in the following environment variables:
Let me know if this feature would be accepted into the main branch and I'll make a PR. Guidance on how this would be implemented would also be appreciated.
The text was updated successfully, but these errors were encountered: