| | |
| | | VUE_APP_BASE_API=/api |
| | | VITE_API_BASE_URL= 'http://192.168.20.158:8089' |
| | | VUE_APP_BASE_API=/api/v1 |
| | | VITE_API_BASE_URL= 'http://aiotlink.com:8189' |
| | |
| | | }, |
| | | proxy: { |
| | | '/base': { |
| | | target: 'http://192.168.20.158:8089',//邦邦 |
| | | target: 'http://192.168.20.158:8089', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), |
| | |
| | | // secure: false |
| | | }, |
| | | '/api/v1': { |
| | | // target: 'http://192.168.20.116:1080/', |
| | | target: 'http://192.168.20.158:8089',//邦邦 |
| | | // target: 'http://192.168.20.116:1080', |
| | | target: 'http://192.168.20.158:8089', |
| | | // target: 'http://aiotlink.com:8189', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | // rewrite: (path) => path.replace(new RegExp(`^/upload`), ''), |
| | | // ws: true, |
| | | // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), |
| | | }, |
| | | }, |
| | | // warmup: { |
| | |
| | | } |
| | | |
| | | if (import.meta.env.VITE_API_BASE_URL) { |
| | | axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL; |
| | | // axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL; |
| | | } |
| | | axios.defaults.withCredentials = true; |
| | | axios.interceptors.request.use( |