You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, maybe we had a misunderstanding—this is not a bug. You need to pass a NextConfig to withNextIntl. In your example, nextConfig is not a NextConfig but a function that returns one.
Thank you @amannn you are right, it worked better with your suggestion, just before closing this issue let me try to reproduce it on the real project this evening, it will probably work too but who knows, I will come back to close it. Thank you again
Description
Hi,
I previously created a discussion for this, all related informations are there: #1683
On this issue I added the reproduction URL
Verifications
Mandatory reproduction URL
https://codesandbox.io/p/github/sovetski/next-intl-bug-repro-app-router/main?import=true
Reproduction description
Steps to reproduce:
yourlocaldomain/en/only-dev
you will see that:in
next.config.ts
:comment
export default nextConfig;
uncomment
export default withNextIntl(nextConfig);
in
layout.tsx
:uncomment all next-intl related part (there is 4-5 lines to uncomment not many)
uncomment next-intl related codes in
page.tsx
andonly-dev/page.dev.tsx
Restart the dev environment
Try to go again
yourlocaldomain/en/only-dev
, now you will have 404 errorExpected behaviour
Nextjs config must work with or without next-intl. Next-intl should not impact inital Nextjs config
The text was updated successfully, but these errors were encountered: