123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- /*
- * @Author: your name
- * @Date: 2021-09-03 14:28:27
- * @LastEditors: code4eat awesomedema@gmail.com
- * @Description: In User Settings Edit
- * @FilePath: /MedicalWisdomCheckSys/config/proxy.ts
- */
- /**
- * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
- * -------------------------------
- * 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
- */
- //118.31.245.65 线上
- //112.124.59.133 测试
- export default {
- dev: {
- '/gateway': {
- target: 'http://120.27.235.181:5000/gateway',
- changeOrigin: true,
- // pathRewrite: { '^/api': '' },
- },
- },
- // mock: {q
- // '/api/': {
- // target: 'http://localhost:8000',
- // changeOrigin: true,
- // pathRewrite: { '^': '' },
- // },
- // },
- prod: {
- '/api/': {
- target: 'https://118.31.245.65:8083/',
- changeOrigin: true,
- pathRewrite: { '^': '' },
- },
- },
- pre: {
- '/api/': {
- target: 'your pre url',
- changeOrigin: true,
- pathRewrite: { '^': '' },
- },
- },
- };
|