Production Testing And Release Checks

Docs/Developer & Operations/Production testing and release checks

Developer & Operations

Production testing and release checks

Before a production release:

Backend

  1. 1.npx prisma format
  2. 2.npx prisma validate
  3. 3.npx prisma generate
  4. 4.npm run build
  5. 5.npm test
  6. 6.npm run test:e2e
  7. 7.npx prisma migrate status

Frontend

  1. 1.npm run build
  2. 2.review production environment URLs
  3. 3.confirm public and authenticated critical pages load

After deployment

Run the production smoke test from the backend repository with API_BASE_URL and FRONTEND_BASE_URL pointing at the deployment.

The smoke test checks:

  • API liveness
  • API readiness
  • request ID and security headers
  • public frontend routes
  • optional authenticated /auth/me when a temporary smoke bearer token is provided

Never commit or package a production smoke token. Supply it only through the environment of the machine running the smoke test.