Steps
- Push the project to a private Git repository and import it in Vercel.
- Add every variable from
.envin Settings → Environment Variables, withNEXT_PUBLIC_BASE_URLset to your domain. - Deploy, then add the domain to Sanity’s CORS origins and create the Stripe production webhook (see Stripe payments).
- In Clerk, switch to a production instance when you go live and update the two Clerk keys.
Warning
Keep the repository private. The license does not allow publishing the source code.
Build settings
Vercel detects Next.js automatically. The defaults are right:
| Setting | Value |
|---|---|
| Framework | Next.js |
| Install command | pnpm install |
| Build command | pnpm build |
After the first deploy
- Open
https://your-domain.com/studioand sign in to check the Studio works (it needs the CORS origin). - Place a test order and check it turns Paid in
/admin/orders. - Work through the go-live checklist.