Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Struggling to authenticate draftMode in a Next.js 13 app, seeking advice and finding a solution.

2 replies
Last updated: Sep 27, 2023
Hi 👋 - I've been struggling to authenticate
draftMode
- as in, I only want users with write access to be able to access/see draftMode - I've had a look at https://github.com/sanity-io/preview-kit but I'm still stuck (nextjs 13 app)
Any advice?
Sep 25, 2023, 1:10 PM
👋 This section of the
next-sanity
package docs should help!
Sep 25, 2023, 4:12 PM
Life saver, it worked, thank you!
Sep 27, 2023, 11:23 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?