Skip to content

Commit

Permalink
fix: build with relative base URL (#84)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mgoltzsche authored Jun 1, 2024
1 parent eb23e03 commit 4106f90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { VitePWA } from 'vite-plugin-pwa';

// https://vitejs.dev/config/
export default defineConfig({
base: './',
plugins: [react(),
VitePWA({
registerType: 'autoUpdate',
Expand Down

0 comments on commit 4106f90

Please sign in to comment.