feat: enable websocket proxy for dev

This commit is contained in:
2024-06-20 23:14:20 -04:00
parent e97949cab3
commit 5e8c5a1631

View File

@@ -108,6 +108,13 @@ module.exports = configure(function ({ dev }) {
secure: false,
rewrite: (path) => path.replace(/^\/api/, ''),
},
'/api/v1/realtime': {
target: 'wss://apidev.bab.toal.ca',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
secure: false,
ws: true,
},
// '/function': {
// target: 'https://6640382951eacb568371.f.appwrite.toal.ca/',
// changeOrigin: true,