|
- module.exports = {
- css: {
- loaderOptions: {
- }
- },
- configureWebpack: {
- performance: {
- hints: false
- },
- devServer: {
- host: '0.0.0.0',
- port: 8002,
- contentBase: ['./node_modules', './public'],
- publicPath: '/',
- disableHostCheck: true,
- proxy: {
- '/api': {
- // target: 'http://test.credit.country.jilin.expo.loan.cacfintech.com',
- target: 'http://localhost:37300',
- // target: 'http://192.168.124.142:8090',
- logLevel: 'debug',
- changeOrigin: true,
- onProxyReq: function (proxyReq, req) {
- console.log(
- '[HPM] Origin changed from ' +
- req.headers.host +
- ' ~> ' +
- proxyReq.getHeader('host')
- );
- }
- },
- '/geoserver': {
- target: 'http://localhost:37300',
- logLevel: 'debug',
- changeOrigin: true,
- onProxyReq: function (proxyReq, req) {
- console.log(
- '[HPM] Origin changed from ' +
- req.headers.host +
- ' ~> ' +
- proxyReq.getHeader('host')
- );
- }
- }
- }
- }
- }
- };
|