Getting started
1. Initialize the template#
Create a new Sanity project -- OR -- install with the Sanity CLI:
npm create sanity@latest -- --template=nuotsu/sanitypress-with-typegen
Environment variables should automatically get configured onto your local codebase.
2. Add content into your Sanity Studio#
Publish the required site
and page
(with the slug "index" for the Homepage) documents:
Document | Slug or Path | Usage | Required? | Notes |
---|---|---|---|---|
site |
Global settings | Yes | ||
page |
index |
Homepage route | Yes | |
page |
404 |
Not found route | ||
page |
blog |
Blog listing route | Add the Blog frontpage module | |
global-module |
blog/ |
Blog post template | Add the Blog post content module |
3. Set up deployments#
Add a Vercel or Netlify widget to enable deployments from the Studio.
4. Customize#
Adjust frontend styles to your liking, edit or add new schema and modules, etc.