14 lines
303 B
TypeScript
14 lines
303 B
TypeScript
import { getRuns } from "@/lib/results";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
/** Liveness probe used by the deploy verify step. */
|
|
export async function GET() {
|
|
const runs = getRuns();
|
|
return Response.json({
|
|
ok: true,
|
|
runs: runs.length,
|
|
latest: runs[0]?.timestamp ?? null,
|
|
});
|
|
}
|