Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Lazy import config into next-intl/navigation (react-server) to avoid loading messages in middleware on Next.js 15 #1673

Closed
wants to merge 2 commits into from

Conversation

amannn
Copy link
Owner

@amannn amannn commented Jan 22, 2025

Fixes #1669

Unfortunately doesn't work: amannn/nextjs-bug-repro-middleware@6c442b0

Alternative would be to split routing.ts, but avoiding this would be even better.

Copy link

vercel bot commented Jan 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-intl-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:08am
next-intl-example-app-router ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:08am
next-intl-example-app-router-without-i18n-routing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 9:08am

@amannn amannn changed the title fix: Lazy import config into next-intl/navigation (react-server) fix: Lazy import config into next-intl/navigation (react-server) to avoid loading messages in middleware on Next.js 15 Jan 22, 2025
@amannn amannn closed this Jan 23, 2025
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.

Middleware size is affected by messages in Next.js 15
1 participant