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

43 lines
1.0 KiB
JavaScript

module.exports = {
devServer: {
proxy: {
'/prod-api': {
//target: 'http://192.168.3.93:81',
target: 'http://192.168.202.20:9000',
changeOrigin: true,
// pathRewrite: {
// '^/prod-ap': '',
// },
},
'/dev-api': {
target: 'http://192.168.3.93:8080',
//target: 'http://192.168.3.231:8080',
changeOrigin: true,
pathRewrite: {
'^/dev-api': '',
},
},
'/api': {
//target: 'http://192.168.3.93:81',
target: 'http://192.168.202.23:5001',
changeOrigin: true,
// pathRewrite: {
// '^/dev-api': '',
// },
},
// '/apiwms': {
// // target: 'http://192.168.3.93:81',
// target: 'http://192.168.3.81:9205',
// changeOrigin: true,
// pathRewrite: {
// '^/api': '',
// },
// },
},
},
lintOnSave: false,
transpileDependencies: ['@dcloudio/uni-ui', 'uview-ui'],
assetsDir: 'nwp/static',
};