LifeMate — Personal, Family & Learning Companion
test(qa): add JWT-gated Supabase Edge runtime probe source
davoodmehraban89 committed
Oct 15, 2026 at 00:35 UTC
bbabd6045d19faf375bcf960a4c4e1f54a986bfe
1 file changed
+21
supabase/functions/lifeguide-qa-health/index.ts
new
+21
@@ -0,0 +1,21 @@
1
+// Isolated, JWT-gated Supabase Edge runtime probe.
2
+// NOT the LifeGuide v0.7.1 Express API. No user data or database access.
3
+const jsonHeaders: Record<string, string> = {
4
+ "content-type": "application/json; charset=utf-8",
5
+ "cache-control": "no-store",
6
+ "x-content-type-options": "nosniff",
7
+ "allow": "GET",
8
+};
9
+
10
+Deno.serve((request: Request) => {
11
+ if (request.method !== "GET") {
12
+ return new Response(JSON.stringify({ error: "method_not_allowed" }), {
13
+ status: 405,
14
+ headers: jsonHeaders,
15
+ });
16
+ }
17
+ return new Response(
18
+ JSON.stringify({ status: "ok", service: "lifeguide-qa-health", scope: "runtime_probe_only" }),
19
+ { status: 200, headers: jsonHeaders },
20
+ );
21
+});