feat(init): let adopters choose how the admin console is hosted#74
Merged
Conversation
Bccorb
force-pushed
the
feat/console-hosting-choice
branch
from
July 25, 2026 02:55
541ddbc to
884f0ba
Compare
Bccorb
force-pushed
the
feat/console-hosting-choice
branch
4 times, most recently
from
July 25, 2026 17:04
8a10968 to
47205d8
Compare
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
force-pushed
the
feat/console-hosting-choice
branch
from
July 25, 2026 17:34
47205d8 to
46ed8dd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:createSeamlessConsoleProxy. SetsSERVE_ADMIN_CONSOLE=trueon the API,SERVE_ADMIN_DASHBOARD=trueon the auth server, and adds the API origin to the auth server'sORIGINSso console passkey ceremonies verify. No separate admin container.http://localhost:5174.Each choice pre-configures the auth-server env, the app-backend env, the Docker Compose services,
seamless.config.json, the success output, andseamless check.Changes
src/prompts/projectSetup.ts).buildAuthEnv(docker.ts): mode-awareORIGINS(api→5173,3000; container→5173,5174; none→5173) andSERVE_ADMIN_DASHBOARD.apiserviceUI_ORIGINStrims5174outside container mode.serveAdminConsoleplaceholder threaded throughtemplates.ts,auth.ts,init.ts.v0.3.0, templatesv0.3.0.Testing
tsc,eslint,buildclean; 598 vitest tests passing (6 suites updated). Verified against the real Express template thatapi/.envgetsSERVE_ADMIN_CONSOLE=trueand compose is correct per mode.Dependencies
SERVE_ADMIN_CONSOLEgate) — the express template'scliMinis0.10.0, matching this CLI's minor bump. Merge/release the templates PR first.SERVE_ADMIN_DASHBOARD.