Next.js · Senior · Question 18 of 75
What is Draft Mode for?
- ✓Correct answer: Temporarily rendering static pages dynamically to preview CMS drafts
- 2Enabling a debug mode with verbose server logs in production
- 3Hiding unfinished pages from search engines via
noindex
Explanation
A CMS editor visits a special Route Handler that calls (await draftMode()).enable() and sets a cookie. While the cookie is present, pages bypass the cache and load draft content. Other visitors keep getting fast static pages.