Next.js Discord

Discord Forum

use draftmode with cache

Answered
B33fb0n3 posted this in #help-forum
Open in Discord
Hey, some time ago you can use draftmode with cache. Like that you can controll the revalidation of pages to have a production and draft enviorement. See here: https://discord.com/channels/752553802359505017/752647196419031042/1237710243207712768

Now it seem's like it's "fixed" and yes if you are in draftmode no unstable_cache is cached. But how to get the cache back? I just want to display the static page as dynamic page, not having dynamic unstable_cache functions...?

Repo: https://github.com/B33fb0n3/iframerevalidate
Answered by B33fb0n3
Fixed by using own draftmode cookie
View full answer

1 Reply

Fixed by using own draftmode cookie
Answer