Skip to content

Commit

Permalink
Check if livesIn is GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGuzior committed Aug 15, 2023
1 parent 4d28815 commit 4d79d86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ function getUrl(params) {
if (livesInGcp && livesInGcp.includes(application)) {
return `${params.baseUrl || config.gcpProxy.url}${params.path}`;
}
return `${params.baseUrl || config.proxyUrl}${params.path}`;
const proxyUrl = config.livesIn === "GCP" ? config.awsProxyUrl : config.proxyUrl;
return `${params.baseUrl || proxyUrl}${params.path}`;
}

module.exports = backends;

0 comments on commit 4d79d86

Please sign in to comment.