| | |
| | | }, |
| | | '/api': { |
| | | // target: 'http://192.168.20.116:1080', |
| | | target: 'http://192.168.20.158:8089', |
| | | // target: 'http://aiotlink.com:8189', |
| | | // target: 'http://192.168.20.158:8089', |
| | | target: 'http://aiotlink.com:8189', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), |
| | | }, |
| | | '/api/v1': { |
| | | // target: 'http://192.168.20.116:1080', |
| | | target: 'http://192.168.20.158:8089', |
| | | // target: 'http://aiotlink.com:8189', |
| | | // target: 'http://192.168.20.158:8089', |
| | | target: 'http://aiotlink.com:8189', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), |
| | |
| | | } |
| | | config.headers.Authorization = `${authorization}`; |
| | | } |
| | | config.headers.Authorization = 'ImE4NGQ4ZWNjNGVmYjExZWZiZjRkMDI0MmFjMTIwMDA2Ig.ZqnIBw.ZX7_UxnSBKu8x_riQ5FrHLMAS78' |
| | | return config; |
| | | }, |
| | | (error) => { |