Skip to content

Release 11.1 introduces i18n limits that blocks us from upgrading. #28157

@gtothesquare

Description

@gtothesquare

What version of Next.js are you using?

10.2.3 -> 11.1

What version of Node.js are you using?

14.x, 16.x

What browser are you using?

Chrome, Firefox

What operating system are you using?

macOS

How are you deploying your application?

next build and we then deploy it in our own infra. (Docker and kubernetes)

Describe the Bug

Currently we are using version 10 of next js. After the summer we planned to upgrade to 11. Then with the release of 11.1 we decided to jump directly to latest. We have a site that has 177 locales and it has been working fine (even on version 11.0). However, 11.1 introduced hard limit to 100 without explanation or warning or a workaround.

Here is the commit of the documentation https://github.com/vercel/next.js/pull/27542/files
And docs in prod
https://nextjs.org/docs/advanced-features/i18n-routing#limits-for-the-i18n-config

Expected Behavior

We can upgrade without issues given that it worked before.

To Reproduce

Create a next.config.js file with 100 more than i18n locales and then run next build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions