Skip to content

docs(cli): clarify that --debug-build-paths requires route group folders in paths#92618

Draft
icyJoseph wants to merge 3 commits intocanaryfrom
cursor/docs-cli-route-groups-ca9b
Draft

docs(cli): clarify that --debug-build-paths requires route group folders in paths#92618
icyJoseph wants to merge 3 commits intocanaryfrom
cursor/docs-cli-route-groups-ca9b

Conversation

@icyJoseph
Copy link
Copy Markdown
Member

What?

Adds a note to the --debug-build-paths section of the CLI docs clarifying that route groups must be included in file paths.

Why?

When using --debug-build-paths, users need to include route group folders (e.g., (marketing)) in the file paths they pass. This isn't obvious from the existing documentation — route groups are stripped from URLs at runtime but must be present in file paths for this CLI option to work correctly.

Addresses feedback from a docs comment noting that "Route groups are also necessary, should be inferred from file paths, but it is not straightforward from reading this."

How?

Added a "Good to know" callout with an example showing how to reference a page inside a route group:

next build --debug-build-paths="app/(marketing)/about/page.tsx"

Slack Thread

Open in Web Open in Cursor 

…ers in paths

Co-authored-by: Joseph <icyJoseph@users.noreply.github.com>
@nextjs-bot nextjs-bot added created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. labels Apr 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

All broken links are now fixed, thank you!

Co-authored-by: Joseph <icyJoseph@users.noreply.github.com>
@nextjs-bot
Copy link
Copy Markdown
Collaborator

nextjs-bot commented Apr 10, 2026

Allow CI Workflow Run

  • approve CI run for commit: 5a64301

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Co-authored-by: Joseph <icyJoseph@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants