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',
port: 8080,
proxy: {
'/api*': {
headers: {
host: config.apiHost.replace(/https?:|\//g, '')
},
target: config.apiHost
'/api': {
target: config.apiHost,
changeOrigin: true // add host http-header, based on target
}
},
hot: true,