mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #477] [MERGED] feat(build): add Next.js-style route report to vinext build output #601
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#601
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/477
Author: @james-elicx
Created: 3/11/2026
Status: ✅ Merged
Merged: 3/11/2026
Merged by: @james-elicx
Base:
main← Head:opencode/playful-knight📝 Commits (8)
de43308feat(build): add Next.js-style route report to vinext build outputee932e2fmt18db3d2fix exmaple7937d4asupport -v7d33a6b.8599c61.2fbfa92fix(build-report): address review commentsef1d204test(build-report): replace misleading classifyAppRoute tests with real fixture coverage📊 Changes
6 files changed (+988 additions, -25 deletions)
View changed files
➕
packages/vinext/src/build/report.ts(+372 -0)📝
packages/vinext/src/cli.ts(+138 -25)➕
tests/build-report.test.ts(+456 -0)➕
tests/fixtures/app-basic/app/error-static-test/page.tsx(+8 -0)➕
tests/fixtures/app-basic/app/revalidate-infinity-test/page.tsx(+7 -0)➕
tests/fixtures/app-basic/app/revalidate-zero-test/page.tsx(+7 -0)📄 Description
Note that more accurate analysis will be implemented through https://github.com/cloudflare/vinext/pull/274
Summary
build/report.tsmodule with regex-based route classification (○ Static,◐ ISR,ƒ Dynamic,? Unknown,λ API) and a Next.js-style formatted route table printed at the end ofvinext buildexport const dynamicorexport const revalidateare classified as? Unknownrather than falsely claiming static — a note is shown when unknown routes are present explaining this will improve in a future release--verboseflag restores raw outputNotes
headers(),cookies(), etc. via runtime analysis) is deferred — tracked as a follow-upunknownonly applies to App Router routes without explicit config🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.