Skip to content

fix: use next links for docs mdx links#22

Draft
leiysky wants to merge 1 commit into
mainfrom
codex/docs-mdx-next-links
Draft

fix: use next links for docs mdx links#22
leiysky wants to merge 1 commit into
mainfrom
codex/docs-mdx-next-links

Conversation

@leiysky

@leiysky leiysky commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Render internal MDX content links through Next Link for client-side navigation.
  • Keep true external, protocol-relative, hash-only, and mail links as normal anchors.

Root cause

Docs content links fell back to plain <a> because the shared MDX component map only registered Callout. Internal docs links therefore performed normal document navigation instead of Next client-side route transitions.

Validation

  • pnpm build
  • Verified in a browser against next start -p 3336: clicking /guides/ingest-events from /guides/quickstart changed routes with zero additional document requests.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
scopedb-docs d9676cb Commit Preview URL

Branch Preview URL
Jun 16 2026, 03:52 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant