@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 07:15 UTC

main
tsx 19 lines 667 Bytes
Raw
1 import { Counter } from "../components/Counter.tsx";
2 import { GreetingForm } from "../components/GreetingForm.tsx";
3 import { readEnv } from "../env.ts";
4
5 export default async function HomePage() {
6 const env = await readEnv();
7 return (
8 <div>
9 <div data-testid="page-marker">PAGE_MARKER</div>
10 <div data-testid="env-message">MESSAGE={String(env.MESSAGE ?? "unset")}</div>
11 <Counter />
12 <GreetingForm />
13 </div>
14 );
15 }
16
17 // Dynamic so the worker must serve it at request time (exercises the
18 // cloudflare:workers env binding in both dev/workerd and preview/miniflare).
19 export const getConfig = async () => ({ render: "dynamic" }) as const;