fix: do not include head tags in inlined site data

pull/2040/head
Evan You 2 years ago
parent b79b8734f3
commit 2f26693a1d

@ -65,7 +65,7 @@ export async function build(
// it's faster than embedding as JS object literal.
const hashMapString = JSON.stringify(JSON.stringify(pageToHashMap))
const siteDataString = JSON.stringify(
JSON.stringify(serializeFunctions(siteConfig.site))
JSON.stringify(serializeFunctions({ ...siteConfig.site, head: [] }))
)
await Promise.all(

Loading…
Cancel
Save