Skip to content

A Next.js + Sanity boilerplate should exist as a single evolving template that all your CMS-based projects are generated from.

License

Notifications You must be signed in to change notification settings

jayantrohila57/nextjs-sanity-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Next.js + Sanity CMS Website Template

A production-ready Next.js + TypeScript scaffold with complete Sanity CMS integration, visual editing, and draft mode capabilities. This is v0.4.1 - Development Workflow Optimized

Content model architecture complete with optimized development workflow, improved file structure, and comprehensive commit guidelines. Ready for page builder implementation.


Current State (v0.4.1)

Implemented:

  • Next.js App Router + TypeScript
  • Tailwind CSS + Biome linting/formatting
  • Complete Sanity CMS integration
  • Visual editing with Presentation Tool
  • Draft mode with live updates
  • Typed GROQ queries with auto-generation
  • Complete Content Model Architecture
  • Site settings schema for global configuration
  • Navigation schema with hierarchical menus
  • Page schema with flexible content blocks
  • Blog schema with author and category relationships
  • Author schema with bio and social links
  • Category schema with hierarchical organization
  • Legal page schema for compliance content
  • Redirects schema for URL management
  • SEO schema for metadata management
  • Comprehensive validation rules across all schemas
  • Slug handling with automatic generation
  • Reference logic for content relationships
  • Error boundaries and loading states
  • Offline page support
  • Production-ready build system
  • Optimized development workflow
  • Improved file structure (domain/infra organization)
  • Comprehensive commit rules and guidelines
  • Fixed linting issues and merge conflicts

In Development:

  • Page Builder System (Phase 5)
  • Advanced page builder blocks
  • Dynamic routing engine

Planned (Roadmap):

  • CMS-driven routing
  • PWA support
  • Legal compliance pages
  • Advanced SEO features

Planned Features (Future Releases)

This template is designed to become a production-ready, CMS-driven website platform. The complete feature set includes:

Page Builder System

Pages will be composed from Sanity-managed blocks:

  • Hero, Rich text, Features, Testimonials, CTA, Gallery, FAQ

SEO System

CMS-managed SEO with meta titles, descriptions, OG images, structured data

Dynamic Routing

Routes generated from Sanity:

  • / Home page
  • /[slug] CMS-driven pages
  • /blog/[slug]
  • Legal routes

PWA Support

Web app manifest, service worker, offline fallback


Development Philosophy

This is a template source, not a finished application:

  • Content will live in Sanity
  • Code stays stable and reusable
  • Every new site created from this template

Current Use Cases

Ready for:

  • Template development
  • Learning the architecture
  • Contributing to core features

Not yet ready for:

  • Production websites
  • Client projects
  • Content management

See PLAN.md for the complete development roadmap.


About the Author

This template is maintained by Jayant Rohila.

Full-stack engineer focused on building CMS-driven, scalable web platforms using Next.js, TypeScript, and Sanity CMS.

GitHub: https://github.com/jayantrohila57

About

A Next.js + Sanity boilerplate should exist as a single evolving template that all your CMS-based projects are generated from.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published