👀 See Sanity in action: Watch product demo now →

How to Connect With Sanity with Gatsby Cloud Environment

8 replies
Last updated: Jun 21, 2020
Hello I’m setting up gatsby cloud for my sanity project. Both are hosted on netlify. But I want to test gatsby cloud. But when I connecting with sanity in gatsby cloud it says the preview extension is’nt enabled
Jun 21, 2020, 7:32 AM
Is the gatsby-source-sanity plugin config set up with watchMode and has it got a read token in the Gatsby cloud env?
Jun 21, 2020, 7:40 AM
I don’t use .env files at this moment.
Jun 21, 2020, 7:42 AM
You should delete and regenerate this token since you gave me (and anyone) access to your drafts and system documents now :)
Weird that this doesn’t work though. May be a bug in the Gatsby cloud setup?
Jun 21, 2020, 7:43 AM
yeah I will change this after everything works 😄
Jun 21, 2020, 7:44 AM
what cause can this be?
Jun 21, 2020, 7:55 AM
Maybe it wants you to add the token and the config to the env?
Jun 21, 2020, 7:58 AM
I’d try to follow the instructions here https://www.gatsbyjs.com/docs/sanity/getting-started/
Jun 21, 2020, 7:58 AM
Oh I figured out! Preview extension doesn’t need to be enabled 🤦
Jun 21, 2020, 8:41 AM

Sanity.io – build remarkable experiences at scale

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

Categorized in