Running a shop and want a website? You don’t need this page. Sapt builds and hosts one for you in the app: see Build your website.
This page is for developers who want their own codebase. sample-website is a public, MIT-licensed Next.js starter that already has Sapt wired in: first-party analytics, lead capture, and a booking funnel all light up from a single Project ID. Clone it, point it at your project, rename it, restyle it, and make it the client’s.
Quick start
Grab your Project ID from the Sapt dashboard. That’s the only required value: no SDK, no backend to run, and no API key needed to get the core experience running. The dev server runs on port 2001.
What the Project ID powers
NEXT_PUBLIC_SAPT_PROJECT_ID is the one knob that turns the site live. With just that set, you get:
Create the booking record type in your project first, or bookings can’t save. The repo’s SAPT_SETUP_GUIDE.md has the schema.
Optional: CMS content
Add an API key to pull section copy from the Sapt CMS instead of hardcoding it:
Then set useCmsContent: true in src/config/site-config.ts. With the key and the flag set, non-developers can update the site’s copy from the Sapt dashboard. Leave them out and the site runs on its built-in copy.
Customizing
Keep going