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

main
astro 19 lines 571 Bytes
Raw
1 ---
2 // On-demand SSR: rendered inside workerd (dev) / the Worker (live). The
3 // middleware sets `Astro.locals.fromMiddleware` before this page renders and
4 // stamps the `x-middleware` response header on the way out.
5 const value = Astro.locals.fromMiddleware ?? "missing";
6 ---
7
8 <html lang="en">
9 <head>
10 <meta charset="utf-8" />
11 <meta name="viewport" content="width=device-width, initial-scale=1" />
12 <title>Locals — Astro Fixture</title>
13 </head>
14 <body>
15 <h1>Locals</h1>
16 <p id="locals">{value}</p>
17 <p><a href="/">home</a></p>
18 </body>
19 </html>