Keep a working version
Always have a known-good version to fall back to—commit or branch before big changes.
Secrets stay secret
Keep API keys and passwords in environment variables, never in your code.
Test before you ship
Click through the real feature—and run the build—before deploying.