The best way to control Claude Code, Codex and more from any computer or phone

main
jsx 22 lines 591 Bytes
Raw
1 import { getCloudflareContext } from "@opennextjs/cloudflare";
2 import { Card } from "./components/Card";
3
4 // Server-rendered in the Worker on every request.
5 export const dynamic = "force-dynamic";
6
7 export const metadata = {
8 title: "Next.js on Cloudflare",
9 };
10
11 export default function Home() {
12 const { env } = getCloudflareContext();
13 return (
14 <main>
15 <h1 className="text-3xl font-bold">{env.GREETING ?? "Hello!"}</h1>
16 <Card
17 title="Styled with Tailwind CSS"
18 body="This card is a React component styled with Tailwind utilities."
19 />
20 </main>
21 );
22 }