Skip to content

Middleware on sites with i18n cannot rewrite to static files #2465

Open
@serhalp

Description

@serhalp

Rewrites in middleware on i18n sites add the locale to the target automatically. However it is supposed to skip this if the target is a static file. This does not currently work, as the middleware doesn't know if a static file exists. This is documented as a known issue.

Data

The following is parsed automatically by the Next.js repo e2e test report generator.

test: test/e2e/i18n-ignore-rewrite-source-locale/rewrites-with-basepath.test.ts, test/e2e/i18n-ignore-rewrite-source-locale/rewrites.test.ts
reason: Middleware on sites with i18n cannot rewrite to static files

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @serhalp

        Issue actions

          Middleware on sites with i18n cannot rewrite to static files · Issue #2465 · opennextjs/opennextjs-netlify