bookmark/vue.config.js

15 lines
353 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'
}
}
}
}
2022-04-28 00:47:43 +00:00
}