m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-17 09:33:38 -05:00

refactor: load web UI assets with a relative URL to allow for hosting under a different path.

Might fix #53.
This commit is contained in:
Sergio
2025-03-21 16:32:23 +02:00
parent dd68c5097a
commit b37b7ed060
3 changed files with 7 additions and 6 deletions

View File

@@ -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