Main commands
What the repository already tests
Unit and route tests
Vitest covers:- payment providers,
- webhook handlers,
- AI middleware,
- rate limits,
- MDX helpers,
- auth-related hooks,
- key route handlers.
DOM tests
Testing Library is used for certain components and hooks such as auth forms, the contact form, the payment hook, and the subscription hook.End-to-end smoke tests
Playwright is used to verify core public routes.GitHub Actions CI
The current CI workflow runs onpush and pull_request to main, then executes:
npm cinpm run lintnpm run typechecknpm testnpm run buildnpx playwright install --with-deps chromiumnpm run e2e
Pre-deploy checklist
npm run env:checknpm run lintnpm run typechecknpm testnpm run build- check
GET /api/health - verify auth callbacks and webhook URLs with the production domain
Production deployment checklist
Deployment target
This repository fits Vercel naturally because it uses Next.js App Router, but it is not locked to Vercel. Whatever platform you choose, you still need:- the correct env values,
- the correct domain,
- the correct auth redirects,
- the correct webhook endpoints.
Lightweight post-deploy checks
After deployment, check at least:- the landing page,
- login and signup,
- the dashboard,
- the billing flow,
- one webhook test,
GET /api/health.
If you want manual testing playbooks by feature, read Testing recipes. If your main deployment target is Vercel, continue to Vercel deployment.