Replies: 1 comment 1 reply
-
From the static rendering docs:
I think that's likely the issue here. In most cases (except for if you're loading messages from a remote CDN or similar), there's btw. performance-wise also no reason to use I'll move this to a discussion since it seems to be a usage question. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
In a Next.js project, using App Router and ISR (exporting a
const revalidate = 7200;
from the page), wrapping agetTranslations
call in aPromise.all
results in the page opting out of static rendering / ISR.Page that works fine:
Page that opted out of ISR silently
Verifications
Mandatory reproduction URL
https://github.com/Thanaen/next-promise-all
Reproduction description
Repository: https://github.com/Thanaen/next-promise-all
Repro preview: https://next-promise-all.vercel.app/
Steps to reproduce:
Expected behaviour
Wrapping
getTranslations
in aPromise.all
shouldn't silently opt out a page from static rendering.Beta Was this translation helpful? Give feedback.
All reactions