QA fixes: HEAD on page routes, Shorts signed-out 401, invite-page onboarding handoff, viewer check buttons clear of the overlay close button

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-09 11:03:26 -05:00
parent dc3a8e0464
commit fe217b897a
7 changed files with 19 additions and 7 deletions
+2 -2
View File
@@ -1548,8 +1548,8 @@ const server = http.createServer(async (req, res) => {
return json(res, 200, { ok: true, config: chain.getConfig() });
}
// -- pages
if (req.method === 'GET') {
// -- pages (HEAD answered like GET so link previewers and crawlers see 200; Node drops the body)
if (req.method === 'GET' || req.method === 'HEAD') {
if (p === '/') return sendFile(res, path.join(PUBLIC_DIR, 'index.html'));
if (p === '/ledger') return sendFile(res, path.join(PUBLIC_DIR, 'ledger.html'));
if (p === '/contract') return sendFile(res, path.join(PUBLIC_DIR, 'contract.html'));