Skip to content

Add hubapi override #638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 28, 2022
Merged

Add hubapi override #638

merged 5 commits into from
Jan 28, 2022

Conversation

KatzMitch
Copy link
Contributor

Description and Context

We want to be able to override which HubAPI domain to hit via environment variable. Fall back on the existing logic if it's unset

return `https://${useLocalHost ? 'local' : 'api'}.hubapi${getEnvUrlString(
env
)}.com`;
var domain = process.env.HUBAPI_DOMAIN_OVERRIDE;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, but this supports es6 syntax so you can use let here.

Copy link
Contributor

@brandenrodgers brandenrodgers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small suggestion, but otherwise lgtm!

@KatzMitch KatzMitch merged commit c56c510 into master Jan 28, 2022
@KatzMitch KatzMitch deleted the add_hubapi_override branch January 28, 2022 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants