Skip to content

Commit

Permalink
fix: Support empty string returns in prerenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Aug 28, 2024
1 parent e161871 commit 659b907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 659b907

Please sign in to comment.