Open simmbiote opened 3 months ago
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)
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
//[...slugs]?nxtPslugs=en-ZA
i18n is configured in next.config.js
const nextConfig = { i18n: { locales: ['en-ZA'], defaultLocale: 'en-ZA', }, ....
Potentially, try set up internationalisation on a nextjs app:
i18n: { locales: ['en-ZA'], defaultLocale: 'en-ZA', },
Pages CI (GitHub/GitLab integration)
37d9b237
No response
Thanks a lot for the issue (and PR!) @simmbiote 🙏 ❤️
(I'm so very sorry for the ultra late reply! 😢 🙇 😓 )
Could you maybe share the source code of your app? (so that I could more easily validate your solution?)
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?![image](https://github.com/cloudflare/next-on-pages/assets/11704483/24e3716d-4c10-44a6-bfd1-52f6f0d1914b)
//[...slugs]?nxtPslugs=en-ZA
i18n is configured in next.config.js
Reproduction
Potentially, try set up internationalisation on a nextjs app:
Pages Deployment Method
Pages CI (GitHub/GitLab integration)
Pages Deployment ID
37d9b237
Additional Information
No response
Would you like to help?