Skip to content

[🐛 Bug]: "Invalid URL String" error #792

@simmbiote

Description

@simmbiote

next-on-pages environment related information

System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:41 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8103
CPU: (8) arm64 Apple M1
Memory: 8 GB
Shell: /bin/zsh
Package Manager Used: npm (10.2.4)

Relevant Packages:
@cloudflare/next-on-pages: 1.11.3
vercel: N/A
next: N/A (Nextjs 14.2.3)

Description

On a very simple page at /, I get "Invalid URL String." error.
Page exists at /src/app/page.tsx.

On debugging I found the error to come from the function applyRouteDest
The cause seems to be the invalid path? //[...slugs]?nxtPslugs=en-ZA
image

i18n is configured in next.config.js

const nextConfig = {
  i18n: {
    locales: ['en-ZA'],
    defaultLocale: 'en-ZA',
  },
....

Reproduction

Potentially, try set up internationalisation on a nextjs app:

  i18n: {
    locales: ['en-ZA'],
    defaultLocale: 'en-ZA',
  },

Pages Deployment Method

Pages CI (GitHub/GitLab integration)

Pages Deployment ID

37d9b237

Additional Information

No response

Would you like to help?

  • Would you like to help fixing this bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions