Before deployment, verify dependencies, tests, environment variables, database migrations, health checks, logs, and secret handling.
- Use a supported Node.js LTS release.
- Run automated tests.
- Use HTTPS.
- Configure process restart and monitoring.
- Back up important databases.
- Review dependency vulnerabilities.
Deep dive
Before going live
- Run tests.
- Install with the lock file.
- Configure production environment variables.
- Apply database migrations safely.
- Verify health endpoints.
- Confirm logs and monitoring.
- Review authentication and authorization.
- Confirm backups and rollback procedures.
ADVERTISEMENT