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
- as in, I only want users with write access to be able to access/see draftMode - I've had a look at but I'm still stuck (nextjs 13 app)
Any advice?
Sep 25, 2023, 1:10 PM
πŸ‘‹ This section of the
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?