We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2bc90d commit 89bd574Copy full SHA for 89bd574
packages/plugin-rsc/src/plugin.ts
@@ -472,7 +472,7 @@ export default function vitePluginRsc(
472
)
473
const mod = await environment.runner.import(resolved.id)
474
// expose original request url to server handler.
475
- // for example, Vite automatically strips `base` from url.
+ // for example, this restores `base` which is automatically stripped by Vite.
476
// https://github.com/vitejs/vite/blob/84079a84ad94de4c1ef4f1bdb2ab448ff2c01196/packages/vite/src/node/server/middlewares/base.ts#L18-L20
477
req.url = req.originalUrl ?? req.url
478
// ensure catching rejected promise
0 commit comments