Ross Coundon
04/22/2021, 10:39 PM.env.local despite that not being the stage name.
I can see in the logs lines such as:
[dotenv][DEBUG] "CUSTOMER" is already defined in `process.env` and will not be overwritten
I have the env vars set in Seed so it’s correctly not overwriting, however, my understanding is that, when in Seed, the dotenv plugin shouldn’t load a .env.local file.Frank
.env.local is a special env file with local overrides that’s normally not git commited.Frank
Frank
.env.STAGE.local, .env.STAGE, .env.local, .env
Files on the left have more priority than files on the right.Frank
.env.STAGE and .env, and git ignore .env.STAGE.local and .env.localJay
Ross Coundon
04/23/2021, 6:24 AMRoss Coundon
04/23/2021, 6:27 AMJay
.local files get their values from the machine they are running in. Or in the case of a CI, the build machine is going to be setting those environment variables. I'm personally still used to not committing these files in Git. But either way works as long as no sensitive info is getting committed 😬Ross Coundon
04/23/2021, 6:15 PM