MK-QuizFlow

DEPLOYMENT.md — MK QuizFlow v2

This document details the build and deployment processes.

Build Requirements

Local Build Pipeline

Before release, verify correct compilation via local builds:

pnpm install
pnpm typecheck              # tsc --noEmit
pnpm lint                   # eslint src
pnpm test                   # vitest run
pnpm build                  # next build
pnpm exec next start --port 3101   # production smoke (only local port used)
pnpm exec playwright test          # e2e smoke against port 3101

Verification (run locally before shipping)

This repo has no hosted CI — GitHub Actions was intentionally removed during the single-branch consolidation. Run the same gates by hand before deploying:

  1. verifypnpm typecheckpnpm lintpnpm test (+ pnpm test:coverage) → pnpm build.
  2. secrets — keep credentials out of the tree; only .env.example is committed.
  3. auditpnpm audit --prod (advisory, non-blocking).
  4. e2epnpm exec playwright test (builds and runs the smoke on port 3101).

Hosting