@davoodmehraban89 / LifeMate / commits / 6e1b4cc
Fork 0

LifeMate — Personal, Family & Learning Companion

feat(cloudflare): fail-closed QA route

davoodmehraban89 committed Oct 15, 2026 at 07:44 UTC 6e1b4ccad9805a506729b0fc27212ddb81a80a87
1 file changed +6
functions/api.ts new
+6
@@ -0,0 +1,6 @@
1 +// Covers the bare /api path, separate from /api/*.
2 +export const onRequest = async (): Promise<Response> =>
3 + new Response(JSON.stringify({error:"lifeguide_api_not_ready",status:"degraded"}), {
4 + status:503,
5 + headers:{"Content-Type":"application/json; charset=utf-8","Cache-Control":"no-store","X-Content-Type-Options":"nosniff"},
6 + });