Files
CatoandClaude 0cad414fae fix(ask): hirnli's tenant names and a database error both reach the fallback; a smoke check for the running engine (#4)
The ask route refused any name classifyHost calls invalid, which includes
every <tenant>.hirnli.orangecat.ch (two labels under the base) - so pointing
Caddy's one ask at the engine would have stopped hirnli's certificates (the
install script's parity check would have refused the switch instead). And a
database error (tables not migrated, an outage) threw before the fallback was
asked. The decision is now mayIssue() in src/lib/ask.ts, tested without a
database.

scripts/smoke.mjs checks a running engine: health, the published site by its
free address and own domain, the preview (noindex), names nobody holds,
the ask, and a form refused for a missing field. Run locally against
Loki's 0140_sites.sql with a SELECT-only role: all checks pass.


Claude-Session: https://claude.ai/code/session_019MDtmugQS9ffkEryKtQb5c

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-01 15:39:46 +01:00
..