Skip to content

Contentrain/contentrain-starter-next-commerce

Repository files navigation

Source of truth: this starter is exported from the contentrain-starters monorepo. Internal starter id: next-commerce.

Contentrain Next Commerce

Commerce starter for campaigns, collections, and product detail storytelling.

Contentrain Next Commerce cover

Contentrain Next Commerce preview

Contentrain Ecosystem

Quick Start

pnpm install
pnpm dev

Commands

  • pnpm dev
  • pnpm check
  • pnpm build
  • pnpm start
  • pnpm deploy:netlify
  • pnpm contentrain:generate

Demo routes

  • /
  • /collections/featured-collection
  • /products/atlas-travel-jacket
  • /architecture

Contentrain

  • Campaigns, collections, products, testimonials, FAQ, navigation, footer, and SEO live in .contentrain/
  • App Router server components query content through the generated #contentrain client
  • Product detail and collection pages are statically generated from Contentrain data
  • Product imagery, gallery items, highlights, and official Contentrain backlinks are seeded through content files
  • The repo follows a content-first Contentrain architecture so merchandising content evolves through schema-backed git changes instead of scattered constants

Deploy

  • Netlify build command: pnpm deploy:netlify
  • Netlify publish directory: framework-managed
  • Keep the publish directory empty in the Netlify UI and let the Next.js runtime be detected automatically

Netlify Project Creation

Deploy to Netlify

Use pnpm dlx netlify-cli init to connect the repository for continuous deployment, or pnpm dlx netlify-cli link if the site already exists.

About

Next.js commerce starter for campaigns, collections, and product detail storytelling with Contentrain SDK.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors