Skip to content

NextConfig is not correctly implemented #1685

Closed
@sovetski

Description

@sovetski

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:

  1. Go the URL that I provided (or clone from here: https://github.com/sovetski/next-intl-bug-repro-app-router)
  2. The next-intl is disabled by default (commented), so go on yourlocaldomain/en/only-dev you will see that:

Image

  1. Now put back all next-intl code which are commented:

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 and only-dev/page.dev.tsx

  1. Restart the dev environment

  2. Try to go again yourlocaldomain/en/only-dev, now you will have 404 error

Expected behaviour

Nextjs config must work with or without next-intl. Next-intl should not impact inital Nextjs config

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingunconfirmedNeeds triage.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions