From 915109c761d13166b9728e5a87ef66ed81a80a73 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 28 Sep 2026 16:29:34 +1300 Subject: [PATCH] Change HTML replace to use function as replacement value --- server/app.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/server/app.js b/server/app.js index cff01dcff..e67be863e 100644 --- a/server/app.js +++ b/server/app.js @@ -283,11 +283,13 @@ export default async function createApp(vite) { const safeProps = JSON.stringify(props).replace(/<(?=\/?script)/ig, '\\u003c'); html = html.replace( '', - `\n` - + `\n` - + ogMetaTags + ()=>{ + return `\n` + + `\n${ + ogMetaTags}`; + } ); return html;