Back to Templates
Portfolio with Sanity
A portfolio templaye with Sanity.
Portfolio with Sanity
This template is a static portfolio built with Next.js and Sanity CMS, supporting Incremental Static Regeneration (ISR) functionality.
Sanity Configuration
Tutorial: https://www.sanity.io/organizations/oa92uat9g/project/k6zvmj0j/getting-started?ref=create-project
Download postType.ts to your local sanity project to start quickly.
Getting Started
Install dependencies: npm i
Local development: npm run dev
Environment variables: Create .env.local
NEXT_PUBLIC_SANITY_PROJECT_ID=${your sanity space ID}
NEXT_PUBLIC_SANITY_DATASET=${your sanity dataset}
In development mode, ISR behavior is consistent with the production environment. If environment variables are not configured, ISR will also be disabled.