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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 BUG: inconsistent 127.0.0.1 and localhost in dev and preview #2669
Comments
Getting a similar issue with Dig a little deeper and I believe the problem is around this line in core dev file (I'm just taking a look at the built file in The log on line 23 outputs I'm relatively new to open-source development so not sure where to go from here. But just posting my findings here in case it helps. Any insights or advice from the core team would be appreciated. I really like this project so hope I can contribute somehow 馃槃 |
Some more updates. Figured it might be a Vite bug so took a look at their repo and found this PR: vitejs/vite#7092 So I'm guessing this is something related to Vite. |
Good news! The PR I linked above vitejs/vite#7092 was just merged to Vite's main branch. Hopefully we can see a new version with the fix soon :) |
Woo! Closing this as an upstream issue. Also, @bholmesdev has been doing some work for v0.24.0 to have an updated CLI output with a new |
What version of
astro
are you using?0.23.2
What package manager are you using?
pnpm
What operating system are you using?
Linux
Describe the Bug
Running astro dev, hostname is 127.0.0.1 (and --hostname doesn't do anything) whereas astro preview the hostname is localhost (and here --hostname works as expected - but not yet document withastro/docs#165).
There's a suble difference between localhost and 127.0.0.1 depending on OS configuration (IPv4 vs IPv6, etc.)
Note that the example doesn't really help since it's a cli problem.
Link to Minimal Reproducible Example
https://stackblitz.com/github/gqaiqojag?file=package.json
The text was updated successfully, but these errors were encountered: