Architecture
Environments, promotion model, and where failures usually come from.
Layers
Environments
- Preview (dev): test keys, disposable data, fast iteration
- Production: live keys, stricter security, rollback plan
Common domain model:
project-dev.yourdomain.comproject.yourdomain.com
Build loop
Rollback
- Revert the last change and redeploy.
- If the failure is configuration (secrets), fix secrets first, then redeploy.