From 659b9076128de0cb1ebcc6feb039ab8f0d4aac86 Mon Sep 17 00:00:00 2001 From: Ryan Christian Date: Wed, 28 Aug 2024 01:01:37 -0500 Subject: [PATCH] fix: Support empty string returns in prerenderer --- src/prerender.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prerender.ts b/src/prerender.ts index d0b5986..6152fe4 100644 --- a/src/prerender.ts +++ b/src/prerender.ts @@ -374,7 +374,7 @@ export function PrerenderPlugin({ let body; if (result && typeof result === "object") { - if (result.html) body = result.html; + if (typeof result.html !== "undefined") body = result.html; if (result.head) { head = result.head; }