Next.js Discord

Discord Forum

How do I cache a page that uses dynamic params in nextjs 15?

Unanswered
Somali posted this in #help-forum
Open in Discord
Avatar
SomaliOP
I have a site where basically all pages turned dynamic after uggrading to nextj 15 and I had to use export const dynamic = "force-static" for the pages to be static. Is that how it should be done now, that I have to be explicit about which pages are static? How will those pages work in draft mode?

1 Reply

Avatar
SomaliOP
Do I have to sprinkle "cache" all over the place to make it happen? And a follow up, how do I get a parallel route cached?