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

fix: ensure extension api is always called with the right host #6168

Merged
merged 3 commits into from
Apr 1, 2025

Conversation

khendrikse
Copy link
Contributor

@khendrikse khendrikse commented Mar 28, 2025

🎉 Thanks for submitting a pull request! 🎉

Summary

This is a little bit of a messy fix, but I want to unblock @lemusthelroy.

Using the CLI locally to interact with the staging environment did not work because we have some interesting logic going on in netlify the CLI: https://github.com/netlify/cli/blob/b5a5c7525edd28925c5c2e3e5f0f00c4261eaba5/src/lib/build.ts#L136

Essentially the CLI is not passing in the host in the proper way, instead using testOpts?

We should change that logic at some point, but in the meantime, this fix should ensure that we always use the right url for calls to the extension API

Additional header

I'm adding an additional header because I want to keep track of cli vs buildbot calls to the extension API


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures
    your code follows our style guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

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

@khendrikse khendrikse requested a review from a team as a code owner March 28, 2025 11:14
@khendrikse khendrikse force-pushed the cpla-2629/ensure-cli-uses-proper-host-for-sdk-api branch from 2f5374a to 619cd07 Compare March 28, 2025 11:25
@khendrikse khendrikse force-pushed the cpla-2629/ensure-cli-uses-proper-host-for-sdk-api branch from 619cd07 to 574e0bf Compare March 28, 2025 11:34
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

Copy link
Contributor

github-actions bot commented Apr 1, 2025

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

@khendrikse khendrikse merged commit 6b34ebf into main Apr 1, 2025
32 of 33 checks passed
@khendrikse khendrikse deleted the cpla-2629/ensure-cli-uses-proper-host-for-sdk-api branch April 1, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants