Skip to content

feat(init): let adopters choose how the admin console is hosted#74

Merged
Bccorb merged 1 commit into
mainfrom
feat/console-hosting-choice
Jul 25, 2026
Merged

feat(init): let adopters choose how the admin console is hosted#74
Bccorb merged 1 commit into
mainfrom
feat/console-hosting-choice

Conversation

@Bccorb

@Bccorb Bccorb commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Adopters can now choose how the admin console is hosted during seamless init. The old "Include Admin Dashboard?" + image/source prompts are replaced by a single hosting choice:

  • Served by your API at /console (recommended default) — the app backend proxies the console via the SDK's createSeamlessConsoleProxy. Sets SERVE_ADMIN_CONSOLE=true on the API, SERVE_ADMIN_DASHBOARD=true on the auth server, and adds the API origin to the auth server's ORIGINS so console passkey ceremonies verify. No separate admin container.
  • Separate container — official image or cloned source (as before), on http://localhost:5174.
  • None — no console scaffolded.

Each choice pre-configures the auth-server env, the app-backend env, the Docker Compose services, seamless.config.json, the success output, and seamless check.

Changes

  • Prompt: one console-hosting select (src/prompts/projectSetup.ts).
  • buildAuthEnv (docker.ts): mode-aware ORIGINS (api→5173,3000; container→5173,5174; none→5173) and SERVE_ADMIN_DASHBOARD.
  • Compose: admin container only for image/source; api service UI_ORIGINS trims 5174 outside container mode.
  • serveAdminConsole placeholder threaded through templates.ts, auth.ts, init.ts.
  • Config/output/check made mode-aware for the console URL.
  • Pins: auth API image v0.3.0, templates v0.3.0.

Testing

tsc, eslint, build clean; 598 vitest tests passing (6 suites updated). Verified against the real Express template that api/.env gets SERVE_ADMIN_CONSOLE=true and compose is correct per mode.

Dependencies

Replace the include/image/source admin prompts with one hosting choice:
API-served at /console (default), a standalone container (image or source), or
none. Each mode pre-configures the auth-server env (ORIGINS for WebAuthn,
SERVE_ADMIN_DASHBOARD), the app-backend env (SERVE_ADMIN_CONSOLE), the compose
services, seamless.config.json, the success output, and seamless check. Pin the
auth API image and templates to v0.3.0.
@Bccorb
Bccorb force-pushed the feat/console-hosting-choice branch from 47205d8 to 46ed8dd Compare July 25, 2026 17:34
@Bccorb
Bccorb merged commit 57e2556 into main Jul 25, 2026
2 checks passed
@Bccorb
Bccorb deleted the feat/console-hosting-choice branch July 25, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant