fix(ssr-server): try to hydrate date charset

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2024-11-26 22:47:28 +08:00
parent 185bbe1dd9
commit f21f3ee33b
+1 -1
View File
@@ -164,7 +164,7 @@ async function injectMetaToTemplate(document: Document, req: FastifyRequest, res
window.__HYDRATE__ = window.__HYDRATE__ || {}
window.__HYDRATE__[${JSON.stringify(meta.key)}] = JSON.parse(${JSON.stringify(JSON.stringify(meta.data))})
`
document.head.prepend(script)
document.head.append(script)
break
}
}