1import { getCloudflareContext } from "@opennextjs/cloudflare";
2
3export 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.
8export 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}