mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #484] [MERGED] fix: exclude private folders (_prefix) from App Router route discovery #606
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#606
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/484
Author: @NathanDrake2406
Created: 3/12/2026
Status: ✅ Merged
Merged: 3/12/2026
Merged by: @james-elicx
Base:
main← Head:fix/exclude-private-folders📝 Commits (2)
707ca61fix: exclude private folders (_prefix) from App Router route discoverydf325b2chore: format app-router.ts📊 Changes
2 files changed (+34 additions, -12 deletions)
View changed files
📝
packages/vinext/src/routing/app-router.ts(+9 -12)📝
tests/routing.test.ts(+25 -0)📄 Description
Summary
_-prefixed directories inapp/as private folders excluded from routing — a recommended pattern for colocating non-route files (_components,_lib,_utils)@-prefixed slot directories, soapp/_components/page.tsxwould incorrectly create a route at/_componentsscanWithExtensionsexclude callback)scanForInterceptingPages)collectInterceptingPages)Test plan
excludes private folders (underscore prefix) from route discovery— verifies_componentsand_lib/utilsare excluded while regular routes are discovered🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.