How's the Astro experience on Cloudflare Pages? anything particular pain points or is it smooth so f
How's the Astro experience on Cloudflare Pages? anything particular pain points or is it smooth so far? it looks pretty promising


src/lib/uptime.ts
export const areMonitorsDown = async () => {
const response = await fetch(
"your_awesome_monitoring_service_url",
{
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.API_KEY}`,
},
next: {
// Cache the response for 3 minutes
revalidate: 3 * 60,
},
}
);
if (response.status !== 200) {
console.error("Failed to fetch monitors", response);
return null;
}
const body = await response.json();
const monitors = body.data;
return monitors.some((monitor: any) => monitor.attributes.status === "down");
};preview_database_id = "DATABASE" export default function Home() {
return null;
// return <Client />;
}
// import Client from "./client";
// import dynamic from "next/dynamic";
// const Client = dynamic(() => import("./client").then((mod) => mod.Client), {
// loading: () => <p>Loading...</p>,
// });