Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
backend ruleP1universalStack: node
envconfigciconsistency
Use the same environment variable name across all environments
Don't set NODE_ENV locally when CI uses APP_ENV; align variable names so behavior matches everywhere.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codejson
| 1 | "start": "NODE_ENV=production node server.js" |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejson
| 1 | "start": "APP_ENV=production node server.js" |
Explanation (EN)
Objašnjenje (HR)