Astro Info
Astro v6.1.5
Vite v7.3.2
Node v22.18.0
System macOS (arm64)
Package Manager npm
Output server
Adapter @astrojs/node (v10.0.4)
Integrations @astrojs/react (v5.0.3)
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I've been encountering this a couple of times now.
I start a dev server on a custom port:
➜ web npm run dev -- --port 45345
> web@0.0.1 dev
> astro dev --port 45345
astro v6.1.5 ready in 787 ms
┃ Local http://localhost:45345/
┃ Network use --host to expose
I then added/removed/changed some environment variables in my .env, and the server restarts on a different port.
14:25:17 [vite] .env changed, restarting server...
[vite] connected.
14:25:18 [vite] Re-optimizing dependencies because vite config has changed
14:25:18 [vite] server restarted.
14:25:18 [vite]
14:25:18 [vite] ➜ Local: http://localhost:5173/
What's the expected result?
The server should've restarted on port 45345.
Link to Minimal Reproducible Example
NA
Participation
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I've been encountering this a couple of times now.
I start a dev server on a custom port:
I then added/removed/changed some environment variables in my
.env, and the server restarts on a different port.What's the expected result?
The server should've restarted on port
45345.Link to Minimal Reproducible Example
NA
Participation