diff --git a/vite/sync/main.ts b/vite/sync/main.ts index 5ad8ff78..c3f82c17 100644 --- a/vite/sync/main.ts +++ b/vite/sync/main.ts @@ -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) => { diff --git a/vite/sync/static b/vite/sync/static new file mode 120000 index 00000000..8e9b74c4 --- /dev/null +++ b/vite/sync/static @@ -0,0 +1 @@ +../../static \ No newline at end of file diff --git a/vite/sync/vite.config.js b/vite/sync/vite.config.js index a5677b32..2349d464 100644 --- a/vite/sync/vite.config.js +++ b/vite/sync/vite.config.js @@ -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, }, },