mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #71] Catch-all route params with hyphens cause 404 (e.g. [[...sign-in]]) #16
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#16
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?
Originally created by @solracnyc on GitHub (Feb 25, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/71
Environment
vinext devReproduce
src/app/sign-in/[[...sign-in]]/page.tsx(standard Clerk catch-all pattern)vinext dev→ visit/sign-in→ 404[[...signIn]]→ visit/sign-in→ 200Root cause
The App Router regex uses
\w+for catch-all param names (source), which doesn't match-. Next.js allows hyphens in catch-all param directory names, and Clerk's default setup scaffolds[[...sign-in]]/[[...sign-up]].Workaround
Rename to camelCase:
[[...signIn]]/[[...signUp]]. Neither Clerk page references the param name, so this is safe.Suggested fix
Change the regex to
[\w-]+or similar to match Next.js behavior.Verified on 0.0.8 — the routing source still uses
\w+.@southpolesteve commented on GitHub (Feb 25, 2026):
/bigbonk review this PR. Make sure we are matching NextJS behavior and have good test coverage
@ask-bonk[bot] commented on GitHub (Feb 25, 2026):
Created PR #78
github run