Skip to content

i18n config option combined with edge deployment causes server error when navigating to the page #42854

@mrkldshv

Description

@mrkldshv

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

    Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 20.6.0: Thu Sep 29 20:15:11 PDT 2022; root:xnu-7195.141.42~1/RELEASE_X86_64
    Binaries:
      Node: 16.15.0
      npm: 8.5.5
      Yarn: 1.22.19
      pnpm: 7.15.0
    Relevant packages:
      next: 13.0.3-canary.4
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

Vercel

Describe the Bug

Combining i18n config option and edge runtime deployed on Vercel causes page render to fail. When I open index page it returns internal server error. Interestingly, when I add /index to the URL, page is rendering without error.

Failing URL: https://i18n-fail-repro.vercel.app
Working URL: https://i18n-fail-repro.vercel.app/index

I can't reproduce this issue on dev or prod builds. It happens only when deployed to Vercel.

I found a few issues that might be related: #42843, #42387.

Expected Behavior

When opening website index page should load without any errors.

Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

https://github.com/mrkldshv/i18n-fail-repro

To Reproduce

  • Go to index page of the deployed site

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.locked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions