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

[MWPW-150667] - milolibs query parameter not working #53

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

robert-bogos
Copy link
Contributor

Description:

This PR extends the nonprod hostnames check that determines if the milolibs query parameter is allowed.

Resolves:

https://jira.corp.adobe.com/browse/MWPW-150667

Test URLs:

@@ -19,7 +19,7 @@ export const [setLibs, getLibs] = (() => {
(prodLibs, location) => {
libs = (() => {
const { hostname, search } = location || window.location;
if (!(hostname.includes('.hlx.') || hostname.includes('local'))) return prodLibs;
if (!['.hlx.', '.stage.', 'local'].some((i) => hostname.includes(i))) return prodLibs;

Choose a reason for hiding this comment

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

Same question as another PR, is there a good reason for going with 'local' instead of 'localhost'? I can't think of hostnames that would have issues with this approach, but also can't think of a good reason to not be specific about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No reason, I wanted to use the same string as was used in the former version

@JasonHowellSlavin JasonHowellSlavin merged commit 7dbed17 into adobecom:stage Jun 20, 2024
3 of 4 checks passed
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.

3 participants