Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1013 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 1013 Bytes

Custom mini Static Site generator

This is from my Smashing magazine article on creating your own SSG For full details on creating this, read the article.

Installation

To get the site up and running:

cd site
npm install
npm run dev

To get the Studio up and running:

  1. Install the Sanity CLI
npm install -g @sanity/cli
  1. Connect /studio/ to your Sanity account and project
cd studio
sanity init
  1. Install and serve
npm install
sanity start
  1. Connect your Sanity project to the site by opening /site/utils/SanityClient.js and replacing projectId and dataset with the correct information created by the Sanity CLI.

Install from sanity.io/create

Want a 1-click installer? This Starter link will give you the code, initialize the Studio, and deploy both to Netlify.