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

main
tsx 24 lines 920 Bytes
Raw
1 import { getEnv } from "waku";
2 import { Card } from "../components/Card.tsx";
3 import { Counter } from "../components/Counter.tsx";
4
5 export default async function HomePage() {
6 // `getEnv` reads the server environment at request time — the portable
7 // way to reach env values from RSC page modules. On Neon it is backed by
8 // the Neon Functions runtime's `process.env`.
9 const greeting = getEnv("GREETING") ?? "Hello!";
10 return (
11 <div>
12 <h1 className="text-3xl font-bold">{greeting}</h1>
13 <Card
14 title="Styled with Tailwind CSS"
15 body="This card is a React component styled with Tailwind utilities."
16 />
17 <p className="mt-4 text-slate-600">This page is rendered by the server on every request.</p>
18 <Counter />
19 </div>
20 );
21 }
22
23 // Dynamic: rendered by the Neon Functions runtime at request time.
24 export const getConfig = async () => ({ render: "dynamic" }) as const;