feat(test): split env config — .env (prod) vs .env.sandbox (sandbox)
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>
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import "load_dotenv";
|
||||
import { loadSync } from "jsr:@std/dotenv";
|
||||
// Sandbox provisioning loads its OWN .env.sandbox; prod config stays in .env (main.ts).
|
||||
loadSync({ envPath: ".env.sandbox", export: true });
|
||||
import { chromium } from "playwright";
|
||||
import path from "node:path";
|
||||
import login from "./scripts/login.ts";
|
||||
|
||||
Reference in New Issue
Block a user