Skip to content
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

Fallback node standalone to localhost #9545

Merged
merged 5 commits into from
Jan 10, 2024
Merged

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Dec 29, 2023

Changes

close #9133

NOTE: this is a major bump for @astrojs/node

The default host is now localhost instead of 172.0.0.1. This aligns with the dev and preview server, and allows it to use ipv6 if the OS chooses so.

Testing

Existing tests should pass.

Docs

Added a changeset explaining the breaking change

Copy link

changeset-bot bot commented Dec 29, 2023

🦋 Changeset detected

Latest commit: dcbd1d8

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope) docs pr A PR that includes documentation for review labels Dec 29, 2023
@bluwy bluwy mentioned this pull request Dec 29, 2023
1 task
.changeset/tame-squids-film.md Outdated Show resolved Hide resolved
Copy link
Member

@Princesseuh Princesseuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me!

@ematipico ematipico modified the milestone: 4.2.0 Jan 4, 2024
@ematipico
Copy link
Member

@bluwy can we merge this one?

@github-actions github-actions bot removed the docs pr A PR that includes documentation for review label Jan 9, 2024
@bluwy
Copy link
Member Author

bluwy commented Jan 9, 2024

We can merge this anytime. I figured it's not urgent so we could merge this whenever we have any other changes to go with the major. I also don't mind if we want to clear up and merge this anyways.

@lilnasy lilnasy changed the base branch from main to adapter-enhancements January 10, 2024 15:43
@lilnasy
Copy link
Contributor

lilnasy commented Jan 10, 2024

Merginf this PR into adapter-enhancements, which will be merged into main alongside astro 4.2 minor changes.

@lilnasy lilnasy merged commit 9fc7744 into adapter-enhancements Jan 10, 2024
14 checks passed
@lilnasy lilnasy deleted the node-localhost branch January 10, 2024 16:32
ematipico added a commit that referenced this pull request Jan 17, 2024
* quality of life updates for `App` (#9579)

* feat(app): writeResponse for node-based adapters

* add changeset

* Apply suggestions from code review

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Apply suggestions from code review

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* add examples for NodeApp static methods

* unexpose createOutgoingHttpHeaders from public api

* move headers test to core

* clientAddress test

* cookies test

* destructure renderOptions right at the start

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Fallback node standalone to localhost (#9545)

* Fallback node standalone to localhost

* Update .changeset/tame-squids-film.md

* quality of life updates for the node adapter (#9582)

* descriptive names for files and functions

* update tests

* add changeset

* appease linter

* Apply suggestions from code review

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* `server-entrypoint.js` -> `server.js`

* prevent crash on stream error (from PR 9533)

* Apply suggestions from code review

Co-authored-by: Luiz Ferraz <luiz@lferraz.com>

* `127.0.0.1` -> `localhost`

* add changeset for fryuni's fix

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* chore(vercel): delete request response conversion logic (#9583)

* refactor

* add changeset

* bump peer dependencies

* unexpose symbols (#9683)

* Update .changeset/tame-squids-film.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: example Related to an example package (scope) pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port conflict
5 participants