@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, 06:00 UTC

main
jsx 16 lines 587 Bytes
Raw
1 import { getCloudflareContext } from "@opennextjs/cloudflare";
2
3 export const dynamic = "force-dynamic";
4
5 // Dedicated page for the hmr-mode dev spec (test/hmr.test.ts): the spec
6 // temporarily edits the marker below and polls until the dev server serves
7 // the change, then restores this file. Keep the marker on its own line.
8 export default function HmrProbe() {
9 const { env } = getCloudflareContext();
10 return (
11 <main>
12 <h1 data-testid="hmr-marker">hmr-probe marker:v1</h1>
13 <p data-testid="hmr-binding">hmr-binding:{env.TEST_TEXT ?? "missing"}</p>
14 </main>
15 );
16 }