From b37b7ed060d6a30a0b80dc127309fb3cfde7a919 Mon Sep 17 00:00:00 2001 From: Sergio <77530549+sergi0g@users.noreply.github.com> Date: Fri, 21 Mar 2025 16:32:23 +0200 Subject: [PATCH] refactor: load web UI assets with a relative URL to allow for hosting under a different path. Might fix #53. --- web/index.html | 6 +++--- web/src/components/Loading.tsx | 6 +++--- web/vite.config.ts | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/web/index.html b/web/index.html index 8f381ea..318ce11 100644 --- a/web/index.html +++ b/web/index.html @@ -26,9 +26,9 @@ content="#030712" > {% endif %} - - - + + +
diff --git a/web/vite.config.ts b/web/vite.config.ts index 4fdbb75..9821bf7 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -4,6 +4,7 @@ import react from "@vitejs/plugin-react-swc"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + base: "./", build: { rollupOptions: { // https://stackoverflow.com/q/69614671/vite-without-hash-in-filename#75344943