Skip to content

Conversation

@kualta
Copy link
Collaborator

@kualta kualta commented Jan 16, 2026

Summary

Fixed fumadocs i18n redirects broken after Next.js 16 migration. The hideLocale: "default-locale" setting now works correctly by using fumadocs' default rewrite logic instead of a custom format function.

Changes

  • Removed custom format function from i18n middleware to let fumadocs handle rewrites properly
  • Moved /docs/docs/overview redirect from next.config to proxy.ts for correct ordering
  • Simplified i18n condition to handle all /docs/* paths

How it works

  1. User visits /docs → proxy redirects to /docs/overview
  2. Fumadocs i18n middleware rewrites to /en/docs/overview internally
  3. Route resolves at /[lang]/docs/[[...slug]] with visible URL /docs/overview

@vercel
Copy link

vercel bot commented Jan 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
talk Ready Ready Preview, Comment Jan 17, 2026 6:16pm

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@kualta kualta merged commit 4b881e6 into main Jan 21, 2026
2 checks passed
@kualta kualta deleted the fumadocs-next16-redirect-fix branch January 21, 2026 21:34
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.

2 participants