diff --git a/server/app.js b/server/app.js index cff01dcff..64504c4e6 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 + ()=>{ //Replace must use a function instead of string, else brews with `$` in contents are treated as replacement patterns + return `\n` + + `\n${ + ogMetaTags}`; + } ); return html;