@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
ts 14 lines 739 Bytes
Raw
1 // Minimal client entry. The cloudflare-vite-plugin handles the worker
2 // runtime separately; this file just satisfies the `index.html` script tag
3 // reference so Vite emits a real client bundle.
4 //
5 // `import.meta.env.VITE_TEST_MARKER` is referenced here so the
6 // "Vite: env props" test can verify `Cloudflare.Website.Vite({ env })` actually
7 // reaches the client bundle. Vite inlines the value via the `define`
8 // hook at build time; the integration test fetches the deployed JS
9 // asset and asserts the value is present.
10 const marker = (import.meta.env as { VITE_TEST_MARKER?: string }).VITE_TEST_MARKER;
11 const el = document.getElementById("app");
12 if (el) {
13 el.textContent = `${el.textContent} (hydrated, marker=${marker ?? ""})`;
14 }