👀 See Sanity in action: Watch product demo now →

Gatsby Cloud Preview - Watch Mode Not Working

3 replies
Last updated: Jan 15, 2022
I had an issue where I was using Gatsby Cloud Preview and watch mode had stopped working—I believe this is because Gatsby Cloud now automatically injects
gatsby-plugin-gatsby-cloud
into the build and uses it's own caching and update system, bypassing develop and watch mode. I fixed it by switching the env variable
GATSBY_PREVIEW_INDICATOR_ENABLED
to
false
and thought I'd post here in case anyone is having a similar issue.
Jun 3, 2021, 12:45 AM
I was just about to debug this myself, thanks for taking the time to post!
Jun 3, 2021, 1:32 PM
I have tried this to no avail, I set the env variable in the Gatsby Cloud admin/UI right? Not as a flag in
gatsby-config.js
?
Jul 24, 2021, 6:00 PM
yeah didnt work for me tried gatsby cloud env variables
Jan 15, 2022, 12:13 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