flatten app to repo root and update docker deployment for single-stack runtime

This commit is contained in:
2026-02-24 00:25:03 -05:00
parent 2987ac06fa
commit 168c05cb71
59 changed files with 64 additions and 12 deletions

11
lib/server/http.ts Normal file
View File

@@ -0,0 +1,11 @@
export function jsonError(message: string, status = 400) {
return Response.json({ error: message }, { status });
}
export function asErrorMessage(error: unknown, fallback: string) {
if (error instanceof Error && error.message.trim().length > 0) {
return error.message;
}
return fallback;
}