From 3592df6a5dd6c67402e602e0f438ec0736ea8ba8 Mon Sep 17 00:00:00 2001 From: mmabdalla <101379618+mmabdalla@users.noreply.github.com> Date: Mon, 29 Dec 2025 01:09:29 +0200 Subject: [PATCH] Fix: Update HTML path and server.js to match Vite build output --- frontend/index.html | 2 +- server.js | 3 ++- vite.config.js | 6 ------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 950e058..4ad24cc 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -7,7 +7,7 @@
- + diff --git a/server.js b/server.js index dd1d5a6..68ef968 100644 --- a/server.js +++ b/server.js @@ -80,7 +80,8 @@ app.get('/preview/:id', previewPage); // Placeholder route handlers async function serveEditor(req, res) { - res.sendFile(path.join(__dirname, 'dist', 'index.html')); + const indexPath = path.join(__dirname, 'dist', 'frontend', 'index.html'); + res.sendFile(indexPath); } async function previewPage(req, res) { diff --git a/vite.config.js b/vite.config.js index eae3c78..b86f328 100644 --- a/vite.config.js +++ b/vite.config.js @@ -24,12 +24,6 @@ export default defineConfig({ rollupOptions: { input: { main: path.resolve(__dirname, 'frontend/index.html'), - renderer: path.resolve(__dirname, 'frontend/renderer/main.tsx'), - }, - output: { - entryFileNames: (chunkInfo) => { - return chunkInfo.name === 'renderer' ? 'renderer.js' : '[name].js'; - }, }, }, },