mirror of
https://github.com/P1kaj1uu/ChatGPT-Video-Parsing.git
synced 2024-11-25 16:36:14 +08:00
24 lines
478 B
Vue
24 lines
478 B
Vue
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
const packageJson = require('./package.json')
|
|
|
|
module.exports = {
|
|
devServer: {
|
|
proxy: {
|
|
'/trans': {
|
|
target: 'https://api.fanyi.baidu.com/api',
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
'^/trans': '/trans'
|
|
}
|
|
},
|
|
'/api': {
|
|
target: 'https://xxxxx',
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
'^/api': '/api'
|
|
}
|
|
},
|
|
}
|
|
},
|
|
}
|