export const dynamic = "force-dynamic"; export async function GET() { let calendarConfigurationValid = false; try { const parsed = JSON.parse(process.env.CALENDAR_ICAL_URLS || "[]") as unknown; calendarConfigurationValid = Array.isArray(parsed) && parsed.length > 0; } catch { calendarConfigurationValid = false; } return Response.json( { status: "ok", service: "hobbs-family-organizer", version: "1.0.0", calendarConfigurationValid, authenticationEnabled: Boolean(process.env.ORGANIZER_ACCESS_TOKEN), checkedAt: new Date().toISOString(), }, { headers: { "Cache-Control": "no-store" } }, ); }