amannn / next-intl

🌐 Internationalization (i18n) for Next.js

Home Page:https://next-intl-docs.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next-intl overrides generateStaticParams for all pages in next.js app

alekszych opened this issue · comments

Description

Screenshot 2024-06-15 at 14 47 24 Screenshot 2024-06-15 at 14 47 16

Verifications

  • I've verified that the problem I'm experiencing isn't covered in the docs.
  • I've searched for similar, existing issues on GitHub and Stack Overflow.
  • I've compared my app to a working example to look for differences.

Mandatory reproduction URL

https://github.com/amannn/next-intl-bug-repro-app-router

Reproduction description

Steps to reproduce:

  1. Create next.js app with app router
  2. Add next-intl
  3. Create a page with generateStaticParams
  4. The params are overwritten by next-intl

Expected behaviour

Next-intl is overwritten by generateStaticParams

Your generateStaticParams function doesn't look right to me and you also didn't provide a reproduction. I'm also not sure what the issue really is you're experiencing. Make sure to refer to the docs and examples if you run into issues with your general app setup.

I'm closing this as it appears to be a usage question and not a bug report.