- Modern Frontend Development with Next.js (App Router, RSC, Typescript) and Tailwind CSS
- Pre-configured Sanity schema for rapid webpage and blog development
- Pre-built common website components (next/src/ui)
- Auto-generated sitemap.xml
- Live previews when set up with a git branch
npm -y create sanity@latestNote
The CLI will ask to create new directory with the Sanity files, but you can remove once the project ID is retrieved.
- sanity/sanity.cli.ts
- sanity/sanity.config.ts
- next/.env.local (duplicate .env.example)
- retrieve a token from Sanity to allow for live previews
- Site settings (sanity/schemas/documents/site.ts)
- Pages (sanity/schemas/documents/page.ts)
Important
Required: Add a page with the slugs index for the Homepage
Optional: Add a page with the slug 404 for the 404 page
- Blog posts (sanity/schemas/documents/blog.post.ts)
For Vercel:
npm i sanity-plugin-dashboard-widget-vercelFor Netlify:
npm i sanity-plugin-dashboard-widget-netlify- Global Types in Next.js
<Img>component for Sanity CDN images