fix: serve docs demo runtime in dev

This commit is contained in:
3252a8
2026-05-29 18:04:00 +03:00
parent 32616c80ab
commit 6fbb8eebec
2 changed files with 14 additions and 2 deletions
@@ -0,0 +1,14 @@
import { readFile } from "node:fs/promises";
import path from "node:path";
const runtimeAppHtml = path.join(process.cwd(), "public", "demo", "runtime", "app.html");
export const prerender = true;
export async function GET() {
return new Response(await readFile(runtimeAppHtml, "utf8"), {
headers: {
"Content-Type": "text/html; charset=utf-8",
},
});
}