Closed neelsudhakaran closed 1 month ago
@neelsudhakaran your reproduction doesn't have an .env
file, can you add it?
Hello @neelsudhakaran. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs repro
will be closed if they have no activity within 3 days.
Sorry about that @ematipico! I added the .env
to the repository. Any edits to the file (or even just saving it) brings up that error for me.
It was really interesting to read about the fix—thank you so much by the way!
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When modifying a
.env
file while the dev server is running, a Vite error is logged to the console.Sometimes (I can't tell if it's when you make multiple saves in rapid succession or something else), you also get the following Node error thrown.
As far as I can tell (and I'm still using environment variables the old way) the environment variables, both with the
PUBLIC_
prefix and without, still work.What's the expected result?
I don't think these warnings, if true, are supposed to print.
Link to Minimal Reproducible Example
https://github.com/neelsudhakaran/astro-server-listen-error
Participation