feat(test): split env config — .env (prod) vs .env.sandbox (sandbox) #17

Merged
arcodange merged 1 commits from claude/test-env-sandbox-split into main 2026-06-29 11:26:47 +02:00
Owner

provisionSandbox.ts now loads its own .env.sandbox (via @std/dotenv loadSync) instead of the shared .env, so the prod target (main.ts.env) and the sandbox target (provisionSandbox.ts.env.sandbox) no longer collide.

  • .gitignore widened to .env* (with !.env.example so the template stays tracked).
  • .env.example rewritten to document the two-file convention + per-env kubectl secret sources, including the caveat that a prod-seeded sandbox uses prod's admin password (the seed clones it).

deno check provisionSandbox.ts passes.

🤖 Generated with Claude Code

`provisionSandbox.ts` now loads its own **`.env.sandbox`** (via `@std/dotenv` `loadSync`) instead of the shared `.env`, so the prod target (`main.ts` → `.env`) and the sandbox target (`provisionSandbox.ts` → `.env.sandbox`) no longer collide. - `.gitignore` widened to `.env*` (with `!.env.example` so the template stays tracked). - `.env.example` rewritten to document the two-file convention + per-env `kubectl` secret sources, including the caveat that a **prod-seeded** sandbox uses **prod's** admin password (the seed clones it). `deno check provisionSandbox.ts` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
arcodange added 1 commit 2026-06-29 11:26:29 +02:00
provisionSandbox.ts now loads its own .env.sandbox (via @std/dotenv loadSync)
instead of the shared .env, so prod (main.ts → .env) and sandbox
(provisionSandbox.ts → .env.sandbox) configs don't collide. .gitignore widened
to .env* (keeping .env.example tracked). .env.example rewritten to document the
two-file convention + the per-env kubectl secret sources, including the caveat
that a prod-seeded sandbox uses PROD's admin password.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
arcodange merged commit 2154bf319e into main 2026-06-29 11:26:47 +02:00
arcodange deleted branch claude/test-env-sandbox-split 2026-06-29 11:26:49 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: arcodange-org/erp#17