mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
The E2E backend inherited the caller's environment and Bun auto-loaded .env files from the repo root, so local credentials and host variables could leak into the run. server.sh now launches the backend with env -i, passing PATH and only the keys from createServerEnv (E2E_SERVER_ENV_KEYS), runs bun with --no-env-file, and starts it from a scratch directory with a frontend symlink so no .env file is in reach.