import { listAccessApps, filterSshApps, type SshApp } from "@/lib/cloudflare"; import Dashboard from "@/components/Dashboard"; import { AlertTriangle } from "lucide-react"; export const revalidate = 60; export default async function Home() { let apps: SshApp[] = []; let error: string | null = null; try { const allApps = await listAccessApps(); apps = filterSshApps(allApps); } catch (e) { error = e instanceof Error ? e.message : "Unknown error"; apps = []; } if (error) { return (

Failed to load applications

{error}

); } return ; }