Fix proxy settings to be able to proxy to dev.account

This commit is contained in:
SleepWalker 2016-10-09 16:39:51 +03:00
parent 23a747e50a
commit c55c0ce9c7
2 changed files with 4 additions and 6 deletions

View File

@ -1,3 +1,3 @@
{ {
"apiHost": "http://account.l" "apiHost": "https://dev.account.ely.by"
} }

View File

@ -254,11 +254,9 @@ if (!isProduction && !isTest) {
host: 'localhost', host: 'localhost',
port: 8080, port: 8080,
proxy: { proxy: {
'/api*': { '/api': {
headers: { target: config.apiHost,
host: config.apiHost.replace(/https?:|\//g, '') changeOrigin: true // add host http-header, based on target
},
target: config.apiHost
} }
}, },
hot: true, hot: true,