QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.25k stars 59 forks source link

`basePath` does not work with `urlMappingStrategy" ` `app` router #247

Closed setowilliam closed 10 months ago

setowilliam commented 10 months ago

Describe the bug When using the next-app example, using basePath redirects to not-found page when using app router.

To Reproduce Steps to reproduce the behavior:

  1. Set basePath in locales/client.ts to /base
  2. Set basePath in next.config.js to /base
  3. Start dev server
  4. Go to http://localhost:3000/base
  5. not-found screen is shown

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

About (please complete the following information):

Additional context Add any other context about the problem here.

setowilliam commented 10 months ago

Sorry, duplicate of https://github.com/QuiiBz/next-international/issues/248