mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #90] [MERGED] fix: detect src/app App Router #300
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#300
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/90
Author: @toddLiao469469
Created: 2/26/2026
Status: ✅ Merged
Merged: 2/27/2026
Merged by: @FredKSchott
Base:
main← Head:fix/src-appdir-detection📝 Commits (1)
9a022a6fix: detect src/app App Router📊 Changes
2 files changed (+22 additions, -1 deletions)
View changed files
📝
packages/vinext/src/utils/project.ts(+4 -1)📝
tests/init.test.ts(+18 -0)📄 Description
Summary
hasAppDirwith Next.js behavior by checking bothapp/andsrc/app/.vinext initmisclassification for projects that usesrc/app.tests/init.test.tsto ensuresrc/appprojects are treated as App Router projects and install App Router dependencies.Why
Next.js supports both
app/andsrc/app/; matching this behavior improves compatibility and avoids incorrect setup duringvinext init.Testing
pnpm exec vitest run tests/init.test.ts🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.