Skip to content

Commit 4106f90

Browse files
authored
fix: build with relative base URL (#84)
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.
1 parent eb23e03 commit 4106f90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { VitePWA } from 'vite-plugin-pwa';
44

55
// https://vitejs.dev/config/
66
export default defineConfig({
7+
base: './',
78
plugins: [react(),
89
VitePWA({
910
registerType: 'autoUpdate',

0 commit comments

Comments
 (0)