Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 4.64 KB

README.md

File metadata and controls

73 lines (49 loc) · 4.64 KB

🖤 SanityPress

Ready, Set, Impress.

An opinionated, fully customizable Next.js (App Router) and Sanity starter template with Tailwind CSS and pre-built schema for rapid website development.

Demo | Docs | Blog | Studio screenshots | Sanity.io

Deploy with Vercel

Key Features

Getting Started

Full instructions on the docs.

  1. New repo: Clone or fork the GitHub template.
  2. Get Sanity project ID: Create a new project on Sanity.io from scratch (blank schema) with CLI and retrieve the projectId.
  3. Update environment variables:
# .env.local
PUBLIC_BASE_URL = ... # https://sanitypress.dev

NEXT_PUBLIC_SANITY_PROJECT_ID = ... # abcdefgh
NEXT_PUBLIC_SANITY_DATASET = ... # production

SANITY_API_READ_TOKEN = ... # "Viewer" token from https://sanity.io/manage

NEXT_PUBLIC_GITHUB_TOKEN = # used for Reputation blocks
  1. Add content: Publish the required site and page documents.
Document Slug Use Required? Notes
site Global settings
page index Homepage
page 404 Page not found
page blog Blog listing Add the Blog frontpage module
page blog/* Blog post Add the Blog post content module

Alternatively, you can import the demo site dataset:

sanity dataset import src/sanity/demo.tar.gz
  1. Set up deployments: Add a Vercel or Netlify widget to enable deployments from the Studio.

  2. Customize: Adjust frontend styles, edit/add Sanity schema and modules, and more.

Resources & Dependencies

How to Support