-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Default preview host to localhost #5753
Merged
Merged
Changes from 10 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e9e4cdb
Initial refactor
bluwy 73b0580
Extract as vite plugin
bluwy 680dbdd
Cleanup vite plugin
bluwy ff459b4
Reduce option passing
bluwy 95ccbc2
Use localhost as preview default host
bluwy 50d366d
Simplify base handling
bluwy 4196ce7
Fix host handling
bluwy dc765d4
Add changeset
bluwy c81dde5
Remove unused imports
bluwy 4409faf
Merge branch 'main' into preview-with-vite
bluwy 0dc68d2
Merge branch 'main' into preview-with-vite
bluwy 6a95790
Remove unused sirv dep
bluwy b853bb3
Merge branch 'main' into preview-with-vite
bluwy 299d070
Merge branch 'main' into preview-with-vite
bluwy 86df73c
Try pin playwright to 1.28.1
bluwy 0165a60
Merge branch 'main' into preview-with-vite
bluwy 87eae29
Update playwright
bluwy 3b7fb00
Try this
bluwy 48cb78d
Speed up CI
bluwy 7d5698d
Merge branch 'main' into preview-with-vite
bluwy 07264ef
Try fix page off
bluwy a49505d
Refactor networkidle
bluwy 60c0a01
Ensure open connections are destroyed when the preview server is closed
matthewp c0ab31b
Revert debug code
bluwy 0ce0cb1
Merge branch 'main' into preview-with-vite
bluwy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': major | ||
--- | ||
|
||
Default preview host to `localhost` instead of `127.0.0.1`. This allows the static server and integration preview servers to serve under ipv6. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR doesn't log port in use anymore as that's deferred to the Vite preview server, which also has it's own logging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you share a screenshot or video of what this looks like?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should look something like this!
I've made 3000 and 3001 occupied, so it'll log two lines that it's trying another one. Previously here's how it looks:
(Note: the
127.0.0.1
andlocalhost
change is part of the main change of this PR to align with dev)