We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cad6c92 + b7d60e9 commit c56c510Copy full SHA for c56c510
packages/cli-lib/lib/urls.js
@@ -13,9 +13,12 @@ const getHubSpotWebsiteOrigin = env => {
13
};
14
15
const getHubSpotApiOrigin = (env, useLocalHost) => {
16
- return `https://${useLocalHost ? 'local' : 'api'}.hubapi${getEnvUrlString(
17
- env
18
- )}.com`;
+ let domain = process.env.HUBAPI_DOMAIN_OVERRIDE;
+
+ if (!domain || typeof domain !== 'string') {
19
+ domain = `${useLocalHost ? 'local' : 'api'}.hubapi${getEnvUrlString(env)}`;
20
+ }
21
+ return `https://${domain}.com`;
22
23
24
module.exports = {
0 commit comments