Skip to content

Commit

Permalink
fix: build with relative base URL
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 committed May 18, 2024
1 parent eb23e03 commit ce7be22
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 ce7be22

Please sign in to comment.