Skip to content

Commit 4071392

Browse files
authored
fix(gastown): remove unauthenticated debug dashboard from worker root (#1431)
Delete the debug dashboard UI (src/ui/dashboard.ui.ts, 1342 lines) and replace the GET / route with a simple JSON health response. The dashboard exposed town state, agent metadata, and bead information as the landing page of the production worker. Closes #1429
1 parent 26fd5f3 commit 4071392

2 files changed

Lines changed: 1 addition & 1347 deletions

File tree

cloudflare-gastown/src/gastown.worker.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { cors } from 'hono/cors';
77
import { getTownContainerStub } from './dos/TownContainer.do';
88
import { getTownDOStub } from './dos/Town.do';
99
import { resError } from './util/res.util';
10-
import { dashboardHtml } from './ui/dashboard.ui';
1110
import {
1211
authMiddleware,
1312
agentOnlyMiddleware,
@@ -186,12 +185,9 @@ const corsMiddleware = cors({
186185
app.use('/api/*', corsMiddleware);
187186
app.use('/trpc/*', corsMiddleware);
188187

189-
// ── Dashboard UI ────────────────────────────────────────────────────────
190-
191-
app.get('/', c => c.html(dashboardHtml()));
192-
193188
// ── Health ──────────────────────────────────────────────────────────────
194189

190+
app.get('/', c => c.json({ service: 'gastown', status: 'ok' }));
195191
app.get('/health', c => c.json({ status: 'ok' }));
196192

197193
// ── DEBUG: unauthenticated town introspection — REMOVE after debugging ──

0 commit comments

Comments
 (0)