mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-28 07:50:32 +05:30
Fix proxy settings to be able to proxy to dev.account
This commit is contained in:
parent
23a747e50a
commit
c55c0ce9c7
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"apiHost": "http://account.l"
|
"apiHost": "https://dev.account.ely.by"
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user