-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.env
Hot Reloading Error (Astro v5 Beta)
#12107
Comments
@neelsudhakaran your reproduction doesn't have an |
Hello @neelsudhakaran. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Sorry about that @ematipico! I added the |
Fixed in #12127 |
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
The text was updated successfully, but these errors were encountered: