From 651c1d87a27e56cadc688c0f91d89dd13e31b9db Mon Sep 17 00:00:00 2001 From: juls0730 Date: Thu, 13 Oct 2022 20:23:48 -0500 Subject: [PATCH] small code restructure --- day21/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;