From ce7be22a186728f58ae257b4a88072f7c1118185 Mon Sep 17 00:00:00 2001 From: Max Goltzsche Date: Sat, 18 May 2024 23:38:23 +0200 Subject: [PATCH] fix: build with relative base URL snapweb was built using / (absolute path) as base URL. However, hard-coding an absolute base path prevents serving snapweb under a different path, e.g. exposing snapweb under `/snapcast/` via a reverse-proxy. To support those kinds of setups, snapweb is built with a relative base URL now. --- vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.ts b/vite.config.ts index ebcb59d..dfaba1a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,6 +4,7 @@ import { VitePWA } from 'vite-plugin-pwa'; // https://vitejs.dev/config/ export default defineConfig({ + base: './', plugins: [react(), VitePWA({ registerType: 'autoUpdate',