fix(server): Wurzel-URL leitet aufs Board statt 404
http://<host>:3377/ antwortete mit 404 — das Board liegt auf /board. Wer prueft, ob der Hub laeuft, oeffnet aber genau die Wurzel-URL und haelt ihn dann faelschlich fuer tot. Vom CEO gemeldet, mir selbst heute einmal passiert. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
dac8afb3c1
commit
8a1728cbce
@ -171,6 +171,11 @@ export async function registerRoutes(app: FastifyInstance, cwd: string): Promise
|
|||||||
// Static, self-contained Trello-like board. Polls /tasks, /handoffs and
|
// Static, self-contained Trello-like board. Polls /tasks, /handoffs and
|
||||||
// /decisions on the same origin; no build step, no deps. Cached once — the
|
// /decisions on the same origin; no build step, no deps. Cached once — the
|
||||||
// markup is constant, only the data it fetches changes.
|
// markup is constant, only the data it fetches changes.
|
||||||
|
// Wurzel-URL auf das Board leiten. Ohne das antwortet http://<host>:3377/
|
||||||
|
// mit 404 — wer "laeuft der Hub?" pruefen will, oeffnet aber genau diese
|
||||||
|
// Adresse und haelt den Hub faelschlich fuer tot (real passiert).
|
||||||
|
app.get('/', async (_request, reply) => reply.redirect('/board', 302));
|
||||||
|
|
||||||
const boardHtml = renderBoardHtml(loadConfig(cwd).projectName);
|
const boardHtml = renderBoardHtml(loadConfig(cwd).projectName);
|
||||||
app.get('/board', async (_request, reply) => reply.type('text/html; charset=utf-8').send(boardHtml));
|
app.get('/board', async (_request, reply) => reply.type('text/html; charset=utf-8').send(boardHtml));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user