chore: add .env.example, fix .gitignore blanket .env* rule (#3)

.env.example was referenced by README.md and required by docs/09-build-plan.md
(Phase 0) but never existed in the repo. Root cause: .gitignore's `.env*` rule
silently ignored it too, so `git add .env.example` was always a no-op even if
someone created it locally.

- Add .gitignore exception: `!.env.example`.
- Add .env.example covering every process.env.* read found in this pass
  (grep-verified across app/, lib/, src/), organized by concern, each section
  marked "wired in code today" or "documented target, not yet read by code"
  per docs/08-infrastructure.md. No real values; matches repo convention.

Excluded ODOO_BASE_URL: only appears inside a comment describing a past
refactor away from module-level env reads, not an actual process.env read.

pnpm test: 88 passed, 1 todo, 0 failures (13 files, tests/**/*.test.ts).
tsc --noEmit: clean.
This commit is contained in:
2026-07-22 18:48:58 +02:00
committed by GitHub
parent 7465b3158f
commit 89e180fc49
2 changed files with 116 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@ yarn-error.log*
# env files
.env*
!.env.example
# vercel
.vercel