proxy websockets

This commit is contained in:
Josh Hawkins 2023-12-07 11:33:14 -06:00
parent a47068922f
commit 193a969144

View File

@ -19,7 +19,16 @@ export default defineConfig({
},
'/exports': {
target: 'http://localhost:5000'
}
},
'/ws': {
target: 'ws://localhost:5000',
ws: true,
},
'/live': {
target: 'ws://localhost:5000',
changeOrigin: true,
ws: true,
},
}
},
plugins: [
@ -44,3 +53,6 @@ export default defineConfig({
globals: true,
},
});