mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #255] [MERGED] fix: config redirects not applying to rsc requests #420
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#420
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/255
Author: @james-elicx
Created: 3/5/2026
Status: ✅ Merged
Merged: 3/5/2026
Merged by: @james-elicx
Base:
main← Head:james/config-redirect-rsc📝 Commits (5)
f3a0cc3fix: config redirects not applying to rsc requests9cd487cfix poorly written test6924886add better fix for soft nav url diffs1e9c7c7escape the .9a7cb49fix: strip .rsc from beforeFiles rewrites; fix redirect recursion and double pushState📊 Changes
5 files changed (+81 additions, -4 deletions)
View changed files
📝
packages/vinext/src/server/app-dev-server.ts(+28 -3)📝
tests/app-router.test.ts(+23 -1)📝
tests/e2e/app-router/config-redirect.spec.ts(+21 -0)📝
tests/fixtures/app-basic/app/page.tsx(+3 -0)📝
tests/fixtures/app-basic/next.config.ts(+6 -0)📄 Description
soft-nav and hard-nav to rsc paths don't apply redirects defined in the config due to the
.rscextension not matching the configured path.further fix to update the browser url to match the redirected url on soft navs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.