Skip to content

Commit 71f1b38

Browse files
authored
fix(new-webui): Configure Vite base parameter to allow hosting in subdirectories (fixes #867). (#875)
1 parent 9eb8158 commit 71f1b38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/log-viewer-webui/client/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import {defineConfig} from "vite";
44

55
// https://vite.dev/config/
66
export default defineConfig({
7+
base: "./",
78
plugins: [react()],
9+
publicDir: "public",
810
server: {
911
port: 8080,
1012
proxy: {
@@ -16,5 +18,4 @@ export default defineConfig({
1618
},
1719
},
1820
},
19-
publicDir: "public",
2021
});

0 commit comments

Comments
 (0)