Get static content showing on sync

This commit is contained in:
Eli Ribble 2026-04-03 15:15:47 +00:00
parent b919472f42
commit b658e28f2e
No known key found for this signature in database
3 changed files with 7 additions and 9 deletions

View file

@ -16,9 +16,6 @@ import "@/gen/custom-icons.scss";
import * as bootstrap from "bootstrap";
window.bootstrap = bootstrap;
// Make SSEManager available to all the JavaScript
window.SSEManager = SSEManager;
document.addEventListener("DOMContentLoaded", () => {
SSEManager.connect("/api/events");
SSEManager.subscribe((msg: SSEMessage) => {

1
vite/sync/static Symbolic link
View file

@ -0,0 +1 @@
../../static

View file

@ -66,27 +66,27 @@ export default defineConfig({
port: 9000,
proxy: {
"/api": {
target: "http://127.0.0.1:9002",
target: "http://127.0.0.1:9003",
changeOrigin: false,
},
"/configuration/upload/pool/flyover": {
target: "http://127.0.0.1:9002",
target: "http://127.0.0.1:9003",
changeOrigin: false,
},
"/mailer": {
target: "http://127.0.0.1:9002",
target: "http://127.0.0.1:9003",
changeOrigin: false,
},
"/qr-code": {
target: "http://127.0.0.1:9002",
target: "http://127.0.0.1:9003",
changeOrigin: false,
},
"/signin": {
target: "http://localhost:9002",
target: "http://localhost:9003",
changeOrigin: false,
},
"/signup": {
target: "http://localhost:9002",
target: "http://localhost:9003",
changeOrigin: false,
},
},