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

serverSideTranslations seems to break ISR when deployed on Vercel #1483

Closed
simonpca opened this issue Oct 26, 2021 · 4 comments
Closed

serverSideTranslations seems to break ISR when deployed on Vercel #1483

simonpca opened this issue Oct 26, 2021 · 4 comments

Comments

@simonpca
Copy link

Describe the bug

Kind of a doozie, but it seems that adding serverSideTranslations breaks ISR when deployed on Vercel (but it seems to work fine if running next build && next start)

Occurs in next-i18next version

8.9.0

Steps to reproduce

This repo reproduces it: https://github.com/simonpca/test

  • The homepage doesn't revalidate.
  • The it-works page, which doesn't use serverSideTranslations, does fine.

Expected behaviour

Pages using serverSideTranslations revalidate when deployed on Vercel

OS (please complete the following information)

  • Device: MBP 2020 16"
  • Browser: Chrome
@simonpca
Copy link
Author

Shamefully self-closing this as a duplicate of half a million other issues I found after the fact mentioning that issue with Vercel and how the localePath setting is what fixes it.

homer_lurking

@waynedunkley
Copy link

Anyone else who comes across this thread
Here's the fix: #1552 (comment)

@yanickrochon
Copy link

That did not work for me.

@lucaspieran
Copy link

any solution ?

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

4 participants