/**
 * 在生产环境 代理是无法生效的，所以这里没有生产环境的配置
 * -------------------------------
 * The agent cannot take effect in the production environment
 * so there is no configuration of the production environment
 * For details, please see
 * https://pro.ant.design/docs/deploy
 */
import defaultSetting from './defaultSettings';
let rewrite = `^${defaultSetting.proxypath}`;

export default {
  dev: {
    [defaultSetting.proxypath]: {
      // 要代理的地址
      target: 'http://192.168.40.64:28001', //jf哥
      // target: 'http://192.168.40.203:8000', //dj哥
      changeOrigin: true,
    },
    '/token': {
      // 要代理的地址
      target: 'http://192.168.40.64:8000',
      changeOrigin: true,
    },
    '/staticfile/': {
      target: 'http://192.168.40.68:9088/',
      changeOrigin: true,
      pathRewrite: {
        '^/staticfile': '',
      },
    },
  },
  test: {
    '/api/': {
      target: 'https://proapi.azurewebsites.net',
      changeOrigin: true,
      pathRewrite: { '^': '' },
    },
  },
  pre: {
    '/api/': {
      target: 'your pre url',
      changeOrigin: true,
      pathRewrite: { '^': '' },
    },
  },
};
