32 lines
792 B
JavaScript
32 lines
792 B
JavaScript
module.exports = {
|
|
// transpileDependencies: true,
|
|
lintOnSave: false,
|
|
productionSourceMap: false,
|
|
devServer: {
|
|
open: false,
|
|
// host: '0.0.0.0', // 允许外部ip访问
|
|
port: 8030, // 端口
|
|
https: false, // 启用https
|
|
// overlay: {
|
|
// warnings: true,
|
|
// errors: true
|
|
// }, // 错误、警告在页面弹出
|
|
proxy: {
|
|
'/api': {
|
|
target: 'https://nftmint.counterfire.games/api',
|
|
changeOrigin: true, // 允许websockets跨域
|
|
pathRewrite: {
|
|
'^/api': ''
|
|
}
|
|
},
|
|
'/asin': {
|
|
target: process.env.VUE_APP_WL_URL,
|
|
changeOrigin: true, // 允许websockets跨域
|
|
pathRewrite: {
|
|
'^/asin': ''
|
|
}
|
|
}
|
|
}, // 代理转发配置,用于调试环境
|
|
},
|
|
}
|