fix(ssr): invalid HTML comment tags (#1260)

This commit is contained in:
Marvin Hagemeister
2023-06-09 11:21:36 +02:00
committed by GitHub
parent 347e353357
commit 5724b73e71
23 changed files with 179 additions and 18 deletions
+11
View File
@@ -0,0 +1,11 @@
import { FreshOptions } from "$fresh/server.ts";
export default {
async render(_ctx, render) {
await new Promise<void>((r) => r());
const body = render();
if (typeof body !== "string") {
throw new Error("body is missing");
}
},
} as FreshOptions;