Keep environments separate and configure via env, not code
Maintain distinct dev/staging/prod environments and drive their differences through configuration, not branching code paths.
Why This Matters
Environment logic baked into code causes prod-only bugs and accidental cross-environment data access.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.