Sanity SvelteKit demo
Sanity
cd studio
npm i
sanity init
- Choose
reconfigure the studio
- Select
create new project
, and leave the project output path blank
- Choose the movie project (schema + sample data)
- Add a sampling of sci-fi movies to your dataset
- Run
sanity start
SvelteKit
cd web
npm i
npm run dev -- --open
Notes
- CORS Origins issue. Add
http://localhost:3000
in your Sanity dashboard > API settings (allow credentials)
- Requires node 12.5+ (node 14 recommended)
SvelteKit docs
https://kit.svelte.dev/docs