Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18next Localization of dynamic pages does not work in the build #460

Open
Pavel064 opened this issue May 16, 2024 · 2 comments
Open

i18next Localization of dynamic pages does not work in the build #460

Pavel064 opened this issue May 16, 2024 · 2 comments

Comments

@Pavel064
Copy link

If I use i18next My dynamic pages work perfectly in the development environment, but in the build version the dynamic pages do not work, I see a blank screen. Once you turn off localization, everything comes back to order.
Can you help me solve this problem?

@pixelass
Copy link
Sponsor Collaborator

pixelass commented May 17, 2024

You have to generate all dynamic pages so that they actually exist after the build. It's a next.js core feature for exports.
https://nextjs.org/docs/pages/api-reference/functions/get-static-paths

@pixelass
Copy link
Sponsor Collaborator

Also refer to: #461

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants