chore: add health endpoint

This commit is contained in:
Zotov Ivan Yuryevich
2026-06-17 22:49:43 +03:00
parent af201556c2
commit f3409e5618

18
src/pages/api/health.ts Normal file
View File

@@ -0,0 +1,18 @@
import type { APIRoute } from 'astro'
// Served on demand so it always reflects the live server, never a build-time snapshot.
export const prerender = false
export const GET: APIRoute = () => {
const body = {
status: 'ok',
}
return new Response(JSON.stringify(body), {
status: 200,
headers: {
'Content-Type': 'application/json',
'Cache-Control': 'no-store',
},
})
}