12345678910111213141516171819202122232425262728293031323334353637 |
- const { defineConfig } = require('@vue/cli-service')
- module.exports = defineConfig({
- devServer:{
- proxy:{
- '/api':{
- target:'https://m.douban.com/rexxar/api/v2',
- changeOrigin:true,
- pathRewrite:{
- '^/api':''
- }
- },
- '/market':{
- target:'https://market.douban.com/api/v2',
- changeOrigin:true,
- pathRewrite:{
- '^/market':''
- }
- },
- '/doubao':{
- target:'https://ark.cn-beijing.volces.com/api/v3',
- changeOrigin:true,
- pathRewrite:{
- '^/doubao':''
- }
- },
- '/map':{
- target:'https://api.map.baidu.com/place/v2',
- changeOrigin:true,
- pathRewrite:{
- '^/map':''
- }
- }
- },
- compress: false
- },
- transpileDependencies: true
- })
|