Skip to content

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

Merged
icyJoseph merged 4 commits into
canaryfrom
cursor/docs-cli-route-groups-ca9b
Apr 12, 2026
Merged

docs(cli): clarify that --debug-build-paths requires route group folders in paths#92618
icyJoseph merged 4 commits into
canaryfrom
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

github-actions Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

All broken links are now fixed, thank you!

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

nextjs-bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

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>
@icyJoseph icyJoseph marked this pull request as ready for review April 12, 2026 11:59
@icyJoseph icyJoseph merged commit db0fdc3 into canary Apr 12, 2026
76 checks passed
@icyJoseph icyJoseph deleted the cursor/docs-cli-route-groups-ca9b branch April 12, 2026 12:13
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants