-
Notifications
You must be signed in to change notification settings - Fork 3
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(override-base-url): add overrideBaseURL in site.config.fetchConfig #633
Conversation
@@ -85,6 +86,7 @@ export const configSchema = Joi.object({ | |||
), | |||
fetchConfig: Joi.object({ | |||
headers: Joi.object().pattern(Joi.string(), Joi.string()), | |||
overrideBaseURL: Joi.string().uri(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this also work for import config or should we've a separate config for imports?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to open a PR https://github.com/adobe/spacecat-import-worker/pull/265 in the import-worker to use the new override provided at site.config.fetchConfig level
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you. So, there'll be separate PR for broken-backlinks audit to leverage the overrideUrl right? the url
introduced in https://jira.corp.adobe.com/browse/SITES-29345 isn't required any more right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm updating all the repos (see PR list in https://jira.corp.adobe.com/browse/SITES-29423?focusedId=46432145&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-46432145), while I figure out why nock doesn't work as expected in the unit tests here.
This PR will trigger a patch release when merged. |
I see two shortcomings of
hence, I suggest to use no
whatever the consumer downstream (import, audit etc) can decide which one to use @iuliag |
@ekremney not sure i can support the proposal. while I understand where you're coming from, the |
@solaris007 got it, similar fashion a |
Rather than each consumer handling base or override, it'll be great, if the |
# [@adobe/spacecat-shared-data-access-v2.9.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.9.4...@adobe/spacecat-shared-data-access-v2.9.5) (2025-02-28) ### Bug Fixes * **override-base-url:** add overrideBaseURL in site.config.fetchConfig ([#633](#633)) ([526874f](526874f))
🎉 This PR is included in version @adobe/spacecat-shared-data-access-v2.9.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [1.62.3](v1.62.2...v1.62.3) (2025-02-28) ### Bug Fixes * **override-base-url:** use overrideBaseURL from site.config.fetchConfig ([#719](#719)) ([3149d47](3149d47)), closes [adobe/spacecat-shared#633](adobe/spacecat-shared#633)
Implements: https://jira.corp.adobe.com/browse/SITES-29423
Additionally, adds as optional the other properties in the different types of import config.