Preview mode works locally, but not in production (Error: Unable to load preview as you're not logged in at onPublicAccessOnly) #4742
Unanswered
sebpowell
asked this question in
Sanity Studio Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have a blog built on Sanity V3 that uses Next.js and is hosted on Vercel.
Locally, I'm able to preview the posts without any problems. But on production, when I login to the studio and try previewing the post, I get the following error in the console:
I'm a little confused by the message as I am logged in to the studio. Any ideas? Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions