-
-
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
quality of life updates for the node adapter #9582
Conversation
🦋 Changeset detectedLatest commit: 1a3883b 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 |
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.
Refactors look great! A few nits on naming
Co-authored-by: Nate Moore <[email protected]>
Co-authored-by: Luiz Ferraz <[email protected]>
There is a bug-fix in here now. Maybe mention it on the changeset? The race condition bug and silent error happens when calling |
Co-authored-by: Emanuele Stoppa <[email protected]>
* 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 <[email protected]> * Apply suggestions from code review Co-authored-by: Emanuele Stoppa <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * `server-entrypoint.js` -> `server.js` * prevent crash on stream error (from PR 9533) * Apply suggestions from code review Co-authored-by: Luiz Ferraz <[email protected]> * `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 <[email protected]> --------- Co-authored-by: Nate Moore <[email protected]> Co-authored-by: Luiz Ferraz <[email protected]> Co-authored-by: Emanuele Stoppa <[email protected]> * 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 <[email protected]> --------- Co-authored-by: Arsh <[email protected]> Co-authored-by: Bjorn Lu <[email protected]> Co-authored-by: Nate Moore <[email protected]> Co-authored-by: Luiz Ferraz <[email protected]> Co-authored-by: Sarah Rainsberger <[email protected]>
Changes
App
#9579.createOutgoingHeaders
is moved intoNodeApp
- its logic was duplicated between node and vercel.server-entrypoint.ts
(previously "server.ts")serve-static.ts
(previously "http-server.ts").serve-app.ts
(previouslyhttp-server.ts
andnodeMiddleware.ts
)log-listening-on.ts
(previouslyget-network-address.ts
,standalone.ts
, andpreview.ts
)middleware.ts
(previously nodeMiddleware.ts)Testing
No new functionality is introduced. Existing tests should pass.
Docs
Does not affect behavior.