Next.js · Senior · Question 18 of 75

What is Draft Mode for?

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.

Further reading

Problem with a question

Next.js · Senior · question 18

Test yourself

Take the Next.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz