From 5242650ccd321c0ba54faa4c89ac1ad231589512 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 28 Feb 2026 19:01:39 +0000 Subject: [PATCH] Use relitive path for loading content (electron fix). --- index.html | 10 +++++----- vite.config.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 8d90c3a..355aac4 100644 --- a/index.html +++ b/index.html @@ -2,17 +2,17 @@ - + - - - - + + + + Farm Control diff --git a/vite.config.js b/vite.config.js index 4471ae8..ceccabf 100644 --- a/vite.config.js +++ b/vite.config.js @@ -11,7 +11,7 @@ const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) export default defineConfig({ - base: '/', + base: './', // Required for Electron file:// protocol - absolute paths fail resolve: { alias: { three: path.resolve(__dirname, 'node_modules/three')