Skip to content

Conversation

hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Aug 29, 2025

Description

This allows server handler to see the original request url instead of the one rewritten by Vite, for example, custom base option will be stripped by default. This aligns with react router (non-rsc) plugin https://github.com/remix-run/react-router/blob/fd184167a7a9cac78258a74533a0f2ac35620d65/packages/react-router-dev/vite/node-adapter.ts#L65.

TODO

  • test

@hi-ogawa hi-ogawa added the trigger: preview Trigger pkg.pr.new label Aug 29, 2025
Copy link

pkg-pr-new bot commented Aug 29, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@vitejs/plugin-react@797
npm i https://pkg.pr.new/@vitejs/plugin-react-oxc@797
npm i https://pkg.pr.new/@vitejs/plugin-rsc@797
npm i https://pkg.pr.new/@vitejs/plugin-react-swc@797

commit: 080c846

@hi-ogawa hi-ogawa marked this pull request as ready for review August 29, 2025 03:51
@hi-ogawa hi-ogawa merged commit 3250231 into main Aug 29, 2025
22 checks passed
@hi-ogawa hi-ogawa deleted the 08-29-fix_rsc_use_req.originalurl_for_server_handler branch August 29, 2025 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

trigger: preview Trigger pkg.pr.new

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant