- Eleventy is the static site generator
- Sanity is the CMS
- This is a monorepo using NPM workspaces
- The Sanity CMS configuration is in
/studio
and the Eleventy frontend code is in/web
- All commands listed below can be run from the root repo directory
Install NPM dependencies:
npm install
Start front-end dev server and watch for changes:
npm run web
Run sanity dev server:
npm run studio
Run front end build script (this is used by Netlify to deploy the site):
npm run build --workspace=web
Run the Sanity build process:
npm run build --workspace=studio
-
Commits on the master branch automatically deploy the site on Netlify
-
Publishing content in Sanity also causes the site to deploy via a Netlify Webhook.
-
Update the sanity studio in produciton
cd studio && sanity deploy
This requires @sanity/cli to be installed locally.