How to have multiple env? #35
Answered
by
agordn52
jeremyhalin
asked this question in
Q&A
-
I would like to have multiple Is there an easy way to achieve that? My use case is very simple, I want to be able to change the API_BASE_URL env variable in dev and production.
|
Beta Was this translation helpful? Give feedback.
Answered by
agordn52
Nov 16, 2022
Replies: 1 comment 7 replies
-
An easy way would be to have separate environment files i.e Hope that makes sense 👍 |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
jeremyhalin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An easy way would be to have separate environment files i.e
.env.developing
,.env.production
and so on...Then, replace the
.env
file with all the variables from the environment you want to use.Hope that makes sense 👍