Test, Deploy & Ship
22 min read
Fix Regressions and Validate the Build
Fix Regressions and Validate the Build
Task
Run the project’s automated checks and fix issues before deployment.
Run:
npm run lint
npm run typecheck
npm run build
Then perform a browser smoke test after the production build.
Pay particular attention to features that share boundaries:
- Reader ↔ progress
- Reader ↔ bookmarks
- Reader ↔ Highlights
- Highlights ↔ Notes
- Library ↔ Book deletion
- Home ↔ progress/activity
- authentication ↔ every protected route
Do not solve a build error by weakening type safety or removing a security check unless the implementation truly requires it.
Test
All three commands should complete successfully.
Then verify the major routes load from the production build.
Checkpoint
Readly passes lint, type checking, build validation, and a production-mode browser smoke test.