diff --git a/server/app.js b/server/app.js index 7caa7f308..669eabace 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;