Project scripts
Bun scripts for dev, quality, DB, test, and deploy.
| Command | What it does |
|---|
bun run dev | Next.js dev |
bun run build / start | Production |
bun run check | i18n + Vite+ check |
bun run check:fix | Auto-fix where possible |
bun run lint / fmt | Lint / format |
| Command | What it does |
|---|
bun run db:generate | Drizzle migration from schema |
bun run db:migrate | Apply migrations |
bun run db:push | Push schema (prototyping) |
bun run db:studio | Drizzle Studio |
bun run db:studio:preview / :production | Studio against .env.preview.local / .env.production.local |
bun run db:migrate:preview / :production | Migrate a specific environment (deliberate, explicit target) |
bun run env:pull:preview / :production | Pull the full Vercel env into the matching .env.*.local |
| Command | What it does |
|---|
bun run test | All Vitest projects |
bun run test:unit / component / integration | Scoped |
bun run test:coverage | Coverage thresholds |
bun run test:e2e:smoke | Playwright smoke |
bun run deploy:preview · bun run deploy:prod (Vercel CLI).