Next.js Discord

Discord Forum

Draft Mode description unclear in docs

Unanswered
Serengeti posted this in #help-forum
Open in Discord
Avatar
SerengetiOP
On the draft mode page (https://nextjs.org/docs/app/building-your-application/configuring/draft-mode) it describes draft mode as such:

Draft Mode allows you to preview draft content from your headless CMS in your Next.js application. This is useful for static pages that are generated at build time as it allows you to switch to dynamic rendering and see the draft changes without having to rebuild your entire site.

I think this is misleading, as unless i am mistaken if you use draft mode anywhere on a route then that page will always be dynamic. Using draft mode from next/headers forces that page to be dynamically rendered and not static as it needs to check the headers. So there is no way to use draft mode with statically rendered pages created at build time.

Is my thinking correct or am I misunderstanding what is going on?

0 Replies