Skip to content
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

Allow overriding the api target host #582

Merged
merged 2 commits into from
Oct 28, 2019
Merged

Conversation

mraerino
Copy link
Contributor

- Summary

When working on the Netlify API I want to be able to work against a local or staging environment using the CLI.
This PR will introduce the ability to set an environment variable called NETLIFY_API_URL to set the API target host.
If it has no path appended (not even /) the standard suffix will be appended.

- Test plan

Tested on my local environment with login and status commands.

- Description for the changelog

n/a (internal change)

- A picture of a cute animal (not mandatory but encouraged)

@mraerino mraerino requested a review from ehmicky October 22, 2019 21:06
Copy link
Contributor

@RaeesBhatti RaeesBhatti left a comment

Choose a reason for hiding this comment

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

Seems good to me!

@RaeesBhatti RaeesBhatti merged commit 69adda4 into master Oct 28, 2019
@RaeesBhatti RaeesBhatti deleted the feature/override_api_url branch October 28, 2019 17:34
@RaeesBhatti
Copy link
Contributor

Just published this to NPM as well.

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