updates
This commit is contained in:
@@ -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/, ''),
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user