bookmark/vue.config.js

16 lines
354 B
JavaScript
Raw Normal View History

2021-07-10 03:56:05 +00:00
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? './' : '/', // 打包配置,解决页面空白の配置方案。
devServer: {
port: 8080,
proxy: {
'/api': {
2021-08-18 12:48:44 +00:00
target: 'https://api.zhanhongzhu.top',
2021-07-10 03:56:05 +00:00
changeOrigin: true,
pathRewrite: {
'^/api': '/api'
}
}
}
}
2023-04-22 15:28:17 +00:00
}