You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a PR where I've updated all examples to Next.js 15: #1089
I've just added Math.random() there to verify and static rendering definitely works for me there. Can you compare with the implementation of example-app-router there to see if you can spot a difference?
Ah yes, that's a really weird bug indeed! I've mentioned this in #1089 and opened vercel/next.js#71623. With rootParams on the horizon, I hope that we'll soon be able to support static rendering much more easily.
Description
Static rendering does not seem to work with Next.js 15
I have cloned the example repo, and I did run the Next.js 15 upgrade command.
npx @next/codemod@canary upgrade latest
Next.js logs show that the pages are static, but they are not.
I have tried both with and without
generateStaticParams()
Verifications
Mandatory reproduction URL
https://github.com/islamBelabbes/example-app-router-nextjs15-static
Reproduction description
Steps to reproduce:
npm npm build
Math.random()
value on home pge changes on every requestExpected behaviour
home page should be static (
Math.random()
value should not change on every request.)The text was updated successfully, but these errors were encountered: