vue.config.js 819 B

12345678910111213141516171819202122232425262728293031323334353637
  1. const { defineConfig } = require('@vue/cli-service')
  2. module.exports = defineConfig({
  3. devServer:{
  4. proxy:{
  5. '/api':{
  6. target:'https://m.douban.com/rexxar/api/v2',
  7. changeOrigin:true,
  8. pathRewrite:{
  9. '^/api':''
  10. }
  11. },
  12. '/market':{
  13. target:'https://market.douban.com/api/v2',
  14. changeOrigin:true,
  15. pathRewrite:{
  16. '^/market':''
  17. }
  18. },
  19. '/doubao':{
  20. target:'https://ark.cn-beijing.volces.com/api/v3',
  21. changeOrigin:true,
  22. pathRewrite:{
  23. '^/doubao':''
  24. }
  25. },
  26. '/map':{
  27. target:'https://api.map.baidu.com/place/v2',
  28. changeOrigin:true,
  29. pathRewrite:{
  30. '^/map':''
  31. }
  32. }
  33. },
  34. compress: false
  35. },
  36. transpileDependencies: true
  37. })