This commit is contained in:
2026-03-12 11:50:56 -04:00
parent a34cb9db62
commit 9022ac1b94
11 changed files with 322 additions and 24 deletions

View File

@@ -12,7 +12,8 @@ export default defineConfig((/* ctx */) => {
// --> boot files are part of "main.js"
// https://v2.quasar.dev/quasar-cli-vite/boot-files
boot: [
'axios'
'axios',
'socket',
],
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#css
@@ -98,9 +99,17 @@ export default defineConfig((/* ctx */) => {
proxy: {
// proxy all requests starting with /api to jsonplaceholder
'/api': {
target: 'http://strixx.famor.org:8000',
target: 'http://localhost:8000',
changeOrigin: true,
},
'/socket.io': {
target: 'http://localhost:8000', // Your backend WebSocket server
secure: false, // Set to true if using wss://
ws: true, // Enable WebSocket proxying
rewriteWsOrigin: true,
changeOrigin: true,
// rewrite: (path) => path.replace(/^\/socket.io/, ''),
}
},
},