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

main
astro 26 lines 870 Bytes
Raw
1 ---
2 // Prerendered at build time INSIDE workerd (`prerenderEnvironment:
3 // "workerd"`, the default). The top-level `cloudflare:workers` import is
4 // impossible under node prerendering — this page building at all proves the
5 // prerender ran in the workerd prerenderer, and the rendered binding value
6 // proves the worker bindings were attached to it.
7 import { env } from "cloudflare:workers";
8
9 export const prerender = true;
10
11 const value = (env as Record<string, unknown>).FIXTURE_VALUE ?? null;
12 ---
13
14 <html lang="en">
15 <head>
16 <meta charset="utf-8" />
17 <meta name="viewport" content="width=device-width, initial-scale=1" />
18 <title>Prerendered in workerd — Astro Fixture</title>
19 </head>
20 <body>
21 <h1>Prerendered in workerd</h1>
22 <p id="mode">prerendered-workerd</p>
23 <p id="binding">{value}</p>
24 <p><a href="/">home</a></p>
25 </body>
26 </html>