|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- /**
- * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
- * -------------------------------
- * 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
- */
- export default {
- dev: {
- '/saasbase/': {
- target: 'http://localhost:5006/',
- changeOrigin: true,
- secure: false, //关闭证书验证
- pathRewrite: {
- '/saasbase/': '',
- },
- },
- '/saasstore/': {
- target: 'http://192.168.1.19:5008/',
- changeOrigin: true,
- secure: false, //关闭证书验证
- pathRewrite: {
- '/saasstore/': '',
- },
- },
- // Nginx发布的时候需要配置
- '/cos/':{
- target: 'https://hbl-test-1305371387.cos.ap-chengdu.myqcloud.com',
- changeOrigin: true,
- secure: false, //关闭证书验证
- pathRewrite: {
- '/cos/': '/',
- },
- }
- },
- test: {
- '/api/': {
- target: 'http://localhost:5006',
- changeOrigin: true,
- secure: false,
- pathRewrite: {
- '^': '',
- },
- },
- },
- pre: {
- '/api/': {
- target: 'http://localhost:5006',
- changeOrigin: true,
- secure: false,
- pathRewrite: {
- '^': '',
- },
- },
- },
- };
- // /**
- // * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
- // * -------------------------------
- // * 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
- // */
- // export default {
- // dev: {
- // '/api/': {
- // target: 'http://114.117.161.250:7002',
- // changeOrigin: true,
- // secure: false, //关闭证书验证
- // pathRewrite: {
- // '^': '',
- // },
- // },
- // },
- // test: {
- // '/api/': {
- // target: 'http://114.117.161.250:7002',
- // changeOrigin: true,
- // secure: false,
- // pathRewrite: {
- // '^': '',
- // },
- // },
- // },
- // pre: {
- // '/api/': {
- // target: 'http://114.117.161.250:7002',
- // changeOrigin: true,
- // secure: false,
- // pathRewrite: {
- // '^': '',
- // },
- // },
- // },
- // };
|