npm install
in the project root folder on localnpm run dev
to start the Studio and frontend locallynpm run build
to build to production locally.env.development.template
to .env.development
and paste in the token: SANITY_READ_TOKEN="yourTokenHere"
.ctrl + C
and npm run dev
).If you want to disable the preview you can set watchMode: false
in gatsby-config.js. If you just want to preview published changes you can set overlayDrafts: false
in gatsby-config.js.