diff --git a/src/prerender.ts b/src/prerender.ts index 866951605b..d237bd9ad2 100644 --- a/src/prerender.ts +++ b/src/prerender.ts @@ -257,10 +257,12 @@ function extractLinks( // Extract from x-nitro-prerender headers const header = res.headers.get("x-nitro-prerender") || ""; - _links.push(...header.split(",") + _links.push( + ...header + .split(",") .map((i) => i.trim()) - .map((i) => decodeURIComponent(i)); - + .map((i) => decodeURIComponent(i)) + ); for (const link of _links.filter(Boolean)) { const parsed = parseURL(link);