Seth Geoghegan
06/10/2022, 9:27 PM.env.local
file, when does that change get picked up? I've noticed that changes to that file are not always reflected when I re-deploy my infrastructureSeth Geoghegan
06/10/2022, 9:28 PMSeth Geoghegan
06/10/2022, 9:28 PMFrank
sst start
?Frank
.env
files are loaded once when sst start
starts up. Changes to the .env
files are not picked up until sst start
restarts.Frank
Seth Geoghegan
06/14/2022, 2:07 PMsst start
. However, I think this may be due to confusion about how dotenv is working. We have stage specific dotenv files (.env.prod, .env.stage) a .env.local for local development, and a .env file for preview deploys in CI/CD.
My suspicion is that she deployed to a specific stage in her local environment, then later ran sst start
on the same environment and got confused when different .env files were used. I'll keep an eye on this and report back if something doesn't look right. For now, it looks SST is performing as expected