proxy-dev.js 578 B

1234567891011121314151617
  1. 'use strict'
  2. // 跨域请求设置,可配置多个
  3. module.exports = {
  4. table: {
  5. '/': {
  6. // target: 'http://172.200.50.17:8083',
  7. target: 'http://172.16.120.104:8083',
  8. ws: true, // 代理websockets
  9. changeOrigin: true,
  10. pathRewrite: { '': '/' } // '^/api' 是一个正则表达式,作用:将 /api 提换成为 /
  11. },
  12. },
  13. // 本地配置ip访问(手机可通过IP访问),需要修改成本地Ip地址
  14. // localhost: '172.200.50.18',
  15. localhost: '172.16.120.200',
  16. port: '3000',
  17. }