Skip to content

feat: sst dev watches .env files and reloads env vars#6887

Draft
guidefari wants to merge 1 commit into
anomalyco:devfrom
guidefari:dev
Draft

feat: sst dev watches .env files and reloads env vars#6887
guidefari wants to merge 1 commit into
anomalyco:devfrom
guidefari:dev

Conversation

@guidefari

Copy link
Copy Markdown

Addresses #6886

Notes

  • Leaving as draft till we're happy with the proposed api/behaviour

@vimtor

vimtor commented May 29, 2026

Copy link
Copy Markdown
Collaborator

this should probably be way simpler. by default, .env files are ignored because we are ignoring any files that start with a dot

we should just allow them

@guidefari

guidefari commented May 30, 2026

Copy link
Copy Markdown
Author

hey @vimtor, looked into this a bit more. check the log I added, updating my .env file fired off the log

time=2026-05-31T00:36:09.193+02:00 level=INFO msg="file change deploy decision" service=deployer path=/abcs/gbfm/.env tracked=false

The dot-name skip I found is in shouldSkipDir, and it returns early for non-directories.

Looks like a redeploy isn't being triggered because .env isn't part of watchedFiles ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants