β£οΈ sanitypress/
ββ π src/
β ββ π app/ # Next.js App Router
β β ββ π (frontend)/ # Public-facing site
β β β ββ layout.tsx # Frontend root layout
β β β ββ not-found.tsx # 404 page
β β β ββ π [[...slug]]/ # Catch-all for all standard pages
β β β ββ π blog/[slug]/ # Individual blog post pages
β β β ββ π blog/rss.xml/ # RSS feed endpoint
β β β ββ π api/ # API route handlers
β β β β ββ π draft-mode/ # Enable/disable Sanity draft mode
β β β β ββ π og/ # Open Graph image generation
β β ββ π (studio)/admin/ # Sanity Studio (CMS editor UI)
β β ββ sitemap.ts # Auto-generated sitemap
β ββ π ui/ # React components
β β ββ π modules/ # One component per Sanity module
β β β ββ π blog/ # Blog-specific components (post list, filters, etc.)
β β β ββ π prose/ # Rich text components / portable text renderer
β β β ββ ... # Modules
β β ββ π header/ # Header, navigation, megamenu
β β ββ π footer/ # Footer and link list
β β ββ ... # Shared components (CTA, Img, Logo, etc.)
β ββ π sanity/ # Sanity CMS configuration
β β ββ π schemaTypes/
β β β ββ π documents/ # Top-level content types (page, blog.post, site, navigationβ¦)
β β β ββ π modules/ # Page-building blocks (heroes, grids, prose, searchβ¦)
β β β ββ π objects/ # Reusable field groups (cta, link, metadataβ¦)
β β β ββ π fragments/ # Shared GROQ fragment definitions
β β ββ π lib/ # Queries, fetch helpers, image builder
β β ββ π ui/ # Custom Studio UI components
β β ββ ... # Sanity files
β ββ π lib/ # Shared app utilities and env helpers
β ββ π hooks/ # Custom React hooks
β ββ π types/ # Global TypeScript declarations
ββ π public/ # Static assets (favicon, etc.)
ββ .env.* # Environment variable template
ββ next.config.ts # Next.js configuration
ββ sanity.config.ts # Sanity Studio configuration
ββ sanity.cli.ts # Sanity CLI configuration
ββ package.jsonFile Structure
Stop Scaffolding. Start Shipping.
Clone SanityPress and have your first page live today.