Demo of kinda working previews on the 11ty meetup
- Install the Sanity CLI with
npm i -g @sanity/cli
- You can run
sanity init
inside the studio to initiate your own project inside of it. - Create a read token for your project in the management dashboard (
sanity manage
). Add it to the Netlify dev environment - Run
sanity start
to run the studio locally
- Run
npm install
to install dependencies - Change the config in
src/sanity.js
to your own projectId and dataset (you can find those inside of/studio/sanity.json
- Run
npm run dev
or preferablynetlify dev
if you have the Netlify CLI (will deal with serverless functions and such)