proxy.prod.js 888 Bytes
Newer Older
1 2
// production 配置文件

sin's avatar
sin committed
3
module.exports = {
4
  '/admin-api/': {
sin's avatar
sin committed
5
    target: 'http://api.shop.iocoder.cn:18099',
6
    changeOrigin: true,
7 8
    pathRewrite: {},
  },
9
  '/product-api/': {
sin's avatar
sin committed
10
    target: 'http://api.shop.iocoder.cn:18099',
11 12 13
    changeOrigin: true,
    pathRewrite: {},
  },
14
  '/order-api/': {
sin's avatar
sin committed
15
    target: 'http://api.shop.iocoder.cn:18099',
16 17 18
    changeOrigin: true,
    pathRewrite: {},
  },
19
  '/promotion-api/': {
sin's avatar
sin committed
20
    target: 'http://api.shop.iocoder.cn:18099',
21 22 23
    changeOrigin: true,
    pathRewrite: {},
  },
24
  '/pay-api/': {
sin's avatar
sin committed
25
    target: 'http://api.shop.iocoder.cn:18099',
26 27 28 29
    changeOrigin: true,
    pathRewrite: {},
  },
  '/user-api/': {
sin's avatar
sin committed
30
    target: 'http://api.shop.iocoder.cn:18099',
31 32
    changeOrigin: true,
    pathRewrite: {},
33 34 35 36 37 38 39
  },
  '/server/api/': {
    target: 'https://preview.pro.ant.design/',
    changeOrigin: true,
    pathRewrite: { '^/server': '' },
  },
};