演示项目-图书馆
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
500 B

1 year ago
1 year ago
1 year ago
  1. /**
  2. * 项目的一些定制化配置
  3. */
  4. const isProd = process.env.NODE_ENV === 'production'
  5. const proxyConfig = {
  6. proxy: {
  7. 'url': "http://192.168.99.67:8080/frontDemoApi",
  8. },
  9. prodProxy: {
  10. 'url': 'https://rosefinchapi.aiyxlib.com/frontDemoApi'
  11. }
  12. }
  13. export default {
  14. // 代理配置,可支持多个代理,key为前缀,命中后,会把前缀去掉,转发到代理服务器
  15. proxy: isProd ? proxyConfig.prodProxy.url : proxyConfig.proxy.url
  16. }