import { NextResponse } from "next/server";

export const runtime = "nodejs";
export const dynamic = "force-dynamic";

export function GET() {
  return NextResponse.json(
    {
      status: "ok",
      buildSha: process.env.NEXT_PUBLIC_BUILD_SHA ?? "dev",
      buildRev: process.env.NEXT_PUBLIC_BUILD_REV ?? "local",
      timestamp: new Date().toISOString(),
    },
    { status: 200 },
  );
}
