e9c7e9df1a
- tv app/Hobbs-Family-Organizer-Self-Hosted-v1.0.0: release bundle (Next.js app + Shield APK v1.4 + source) - compose/hf-pdocker-02/hobbs-organizer: override (local-disk secrets, watchtower off), .env (port 8340), Shield provisioning script - CLAUDE.md: service tree + internal ports Trusted-LAN mode. Secrets live only on .100 /var/lib/hobbs-organizer/secrets (not in git). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E9NnVEico3WvFxLyjy1iW3
24 lines
667 B
TypeScript
24 lines
667 B
TypeScript
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" } },
|
|
);
|
|
}
|