ShiftFast Docs
Deployment

Vercel

Import the repository and deploy every push to main.

Finish the deployment checklist first: the production database, Clerk, and Stripe.

Import your repository at vercel.com/new. It detects Next.js, so the build settings need no changes. Vercel deploys as soon as you import, so on the import screen add every production variable from the checklist under Environment Variables.

On the free Hobby plan, Vercel can't import a repository owned by a GitHub organization — use a repository under your personal account, a Pro plan, or the included .github/workflows/deploy.yml (setup steps are in the comment at its top).

Releasing changes

Every push to main deploys to production. Migrations don't run on deploy: apply each one to production before you push the code that needs it:

DIRECT_URL="<production direct URL>" pnpm db:migrate

Preview deployments

Every other branch and pull request gets a preview deployment. Variables added on the import screen can apply to previews too, so check them under Settings → Environment Variables: give the Preview environment your development Clerk and Stripe keys and a non-production database, never the production ones. A branch that changes the schema needs its migration applied to that database too, or its preview will fail.

On this page