Unified · Split
| @@ -30,6 +30,9 @@ develop on its `main`, publish a bump, then bump the dependency here. The · 29 unmodified lines | ||
| 30 | 30 | - Self-host boots standalone with just env vars — see |
| 31 | 31 | `e2e/setup/selfhost.globalsetup.ts` for the canonical recipe (data dir, |
| 32 | 32 | bootstrap admin email/password, base URL, `EXECUTOR_ALLOW_LOCAL_NETWORK`) |
| 33 | +- Self-host Vite dev shows first-run setup by default. Set | |
| 34 | + `EXECUTOR_DEV_SEED_ADMIN=1` to seed `admin@example.com` / | |
| 35 | + `executor-dev-admin` instead. | |
| 33 | 36 | - Cloud needs WorkOS + Autumn; for a no-.env boot, point it at emulators — |
| 34 | 37 | see `e2e/setup/cloud.globalsetup.ts` for the canonical recipe (the real |
| 35 | 38 | SDKs against emulated services, PGlite dev DB) |
| @@ -34,8 +34,10 @@ const DEV_PORT = 5173; · 33 unmodified lines | ||
| 34 | 34 | // via real env for anything you care about (esp. BETTER_AUTH_SECRET in prod). |
| 35 | 35 | process.env.EXECUTOR_DATA_DIR ??= fileURLToPath(new URL("./.executor-dev/", import.meta.url)); |
| 36 | 36 | process.env.BETTER_AUTH_SECRET ??= "executor-selfhost-dev-secret-change-me-0123456789"; |
| 37 | −process.env.EXECUTOR_BOOTSTRAP_ADMIN_EMAIL ??= "admin@example.com"; | |
| 38 | −process.env.EXECUTOR_BOOTSTRAP_ADMIN_PASSWORD ??= "executor-dev-admin"; | |
| 37 | +if (process.env.EXECUTOR_DEV_SEED_ADMIN === "1") { | |
| 38 | + process.env.EXECUTOR_BOOTSTRAP_ADMIN_EMAIL ??= "admin@example.com"; | |
| 39 | + process.env.EXECUTOR_BOOTSTRAP_ADMIN_PASSWORD ??= "executor-dev-admin"; | |
| 40 | +} | |
| 39 | 41 | process.env.EXECUTOR_WEB_BASE_URL ??= `http://localhost:${DEV_PORT}`; |
| 40 | 42 | |
| 41 | 43 | // Dev-only: forward /api, /mcp, /docs to the self-host Effect handler in-process |