Is there a Cloudflare equivalent to Cloudinary's remote image fetch? And is there any good documenta
Is there a Cloudflare equivalent to Cloudinary's remote image fetch? And is there any good documentation on using it with Next's Image component?


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>,
// });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");
};