fix: stabilize docs demo runtime routing

This commit is contained in:
3252a8
2026-05-31 00:25:23 +03:00
parent cf3af17243
commit 19f7daff6c
5 changed files with 21 additions and 27 deletions
@@ -1,14 +0,0 @@
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",
},
});
}