feat: enable websocket proxy for dev
This commit is contained in:
@@ -108,6 +108,13 @@ module.exports = configure(function ({ dev }) {
|
|||||||
secure: false,
|
secure: false,
|
||||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
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': {
|
// '/function': {
|
||||||
// target: 'https://6640382951eacb568371.f.appwrite.toal.ca/',
|
// target: 'https://6640382951eacb568371.f.appwrite.toal.ca/',
|
||||||
// changeOrigin: true,
|
// changeOrigin: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user