diff --git a/day21/index.ts b/day21/index.ts index b840e74..3038280 100644 --- a/day21/index.ts +++ b/day21/index.ts @@ -66,8 +66,6 @@ async function createServer() { fileName = fileName.join('/').toLowerCase().trim(); } - template = template.replace('', ''); - // 2. Apply Vite HTML transforms. This injects the Vite HMR client, and // also applies HTML transforms from Vite plugins, e.g. global preambles // from @vitejs/plugin-react @@ -120,6 +118,8 @@ async function createServer() { // eslint-disable-next-line @typescript-eslint/no-unused-vars const appState = main.appState; + template = template.replace('', ''); + template = template.replace('id="app"', 'id="app" data-server-rendered="true"'); let scriptedTemplate = template;