You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
406 B

const target = 'http://localhost:9999';
module.exports = {
env: {
NODE_ENV: '"development"'
},
defineConstants: {
},
mini: {},
h5: {
devServer: {
//host: '0.0.0.0',
host: '192.168.3.102',
port: 10086,
// 设置代理来解决 H5 请求的跨域问题
proxy: {
'/api': {
target,
changeOrigin: true
}
}
}
}
}