#Multiple .env files

3 messages · Page 1 of 1 (latest)

tawny wigeon
#

We have one codebase for different websites.
We want to find a way to doe a script that is something like "npm run devSiteA" and "npm run devSiteB" (and then same with staging and production etc)
We have multiple .env files (for exampel .env.development-siteA and .env.development-siteB) and are looking for a way to pick one or the other by running the correct script.
I know that there is like .env .env.development .env.test .env.production and .env.local. But i was wondering if it is possible in any way to make it to select a specific .env file that is not one of the standard files on startup

hollow oar
#

what u can do

#

is keep the highest level directories for each website