Skip to content
Tulos

Deploy to Vercel

Put your store online with Vercel in a few minutes.

Steps

  1. Push the project to a private Git repository and import it in Vercel.
  2. Add every variable from .env in Settings → Environment Variables, with NEXT_PUBLIC_BASE_URL set to your domain.
  3. Deploy, then add the domain to Sanity’s CORS origins and create the Stripe production webhook (see Stripe payments).
  4. 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/studio and 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.