Skip to content

Conversation

@icyJoseph
Copy link
Collaborator

Adding CLI docs for next experimental-analyze

@nextjs-bot nextjs-bot added created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. labels Dec 17, 2025
@github-actions
Copy link
Contributor

Hi there 👋

It looks like this PR introduces broken links to the docs, please take a moment to fix them before merging:

Broken link Type File
/docs/app/guides/package-bundling#turbopack-bundle-analyzer-experimental hash /docs/01-app/03-api-reference/06-cli/next.mdx

Thank you 🙏

- View the full import chain showing why a module is included
- Trace imports across server-to-client component boundaries and dynamic imports

See [Package Bundling](/docs/app/guides/package-bundling#turbopack-bundle-analyzer-experimental) for optimization strategies.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
See [Package Bundling](/docs/app/guides/package-bundling#turbopack-bundle-analyzer-experimental) for optimization strategies.
See [Package Bundling](/docs/app/guides/package-bundling) for optimization strategies.

The documentation links to a non-existent section anchor in the package-bundling guide. The anchor #turbopack-bundle-analyzer-experimental doesn't exist in /docs/app/guides/package-bundling.mdx.

View Details

Analysis

Broken documentation link with non-existent anchor in CLI reference

What fails: Line 218 in docs/01-app/03-api-reference/06-cli/next.mdx contains a link to #turbopack-bundle-analyzer-experimental anchor that does not exist in the target document docs/01-app/02-guides/package-bundling.mdx.

How to reproduce: Open docs/01-app/03-api-reference/06-cli/next.mdx line 218 and click on the "Package Bundling" link with the anchor #turbopack-bundle-analyzer-experimental.

Result: Users are directed to the top of the package-bundling page instead of a specific relevant section.

Expected: The link should resolve to an actual section heading in the package-bundling guide or point to the main page without the anchor.

Fix applied: Removed the non-existent anchor #turbopack-bundle-analyzer-experimental and linked to the main package-bundling page at /docs/app/guides/package-bundling. The "Analyzing JavaScript bundles" section in the target document is the most relevant content for the next experimental-analyze command documentation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

3 participants