@davoodmehraban89 / LifeMate / commits / 0eb0920
Fork 0

LifeMate — Personal, Family & Learning Companion

feat(cloudflare): fail-closed QA route

davoodmehraban89 committed Oct 15, 2026 at 07:44 UTC 0eb092059663667fec51c9f5ba53e9cd48aaacd6
1 file changed +10
functions/ready.ts new
+10
@@ -0,0 +1,10 @@
1 +export const onRequest = async (): Promise<Response> =>
2 + new Response(JSON.stringify({
3 + status: "degraded",
4 + reason: "qa_backend_not_connected",
5 + product: "LifeGuide",
6 + }), { status: 503, headers: {
7 + "Content-Type": "application/json; charset=utf-8",
8 + "Cache-Control": "no-store",
9 + "X-Content-Type-Options": "nosniff",
10 + } });