feat(site): add Mux health check action (#542)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-02-17 13:11:22 -06:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 78de97ec23
commit 1d6cc2b8c0
4 changed files with 53 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { actions } from 'astro:actions';
import type { APIRoute } from 'astro';
export const prerender = false;
export const GET: APIRoute = async (context) => {
const { data, error } = await context.callAction(actions.mux.health, {});
if (error) {
return Response.json({ ok: false, error: error.message }, { status: 502 });
}
return Response.json(data);
};