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-163902 Fix edge snippet fallback #916

Merged
merged 6 commits into from
Dec 13, 2024
Merged

MWPW-163902 Fix edge snippet fallback #916

merged 6 commits into from
Dec 13, 2024

Conversation

TsayAdobe
Copy link
Collaborator

Resolves: MWPW-163902

Copy link

aem-code-sync bot commented Dec 10, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@codecov-commenter
Copy link

codecov-commenter commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Project coverage is 80.98%. Comparing base (847d448) to head (2e934b4).
Report is 1 commits behind head on stage.

Files with missing lines Patch % Lines
.../blocks/dc-converter-widget/dc-converter-widget.js 72.72% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #916      +/-   ##
==========================================
- Coverage   81.02%   80.98%   -0.05%     
==========================================
  Files          49       49              
  Lines        6452     6457       +5     
==========================================
+ Hits         5228     5229       +1     
- Misses       1224     1228       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

const response = await fetch(DC_GENERATE_CACHE_URL || `${DC_DOMAIN}/dc-generate-cache/dc-hosted-${DC_GENERATE_CACHE_VERSION}/${VERB}-${pageLang}.html`);
const cacheHost = new URL(WIDGET_ENV);
cacheHost.pathname = '';
const response = await fetch(DC_GENERATE_CACHE_URL || `${cacheHost}dc-generate-cache/dc-hosted-${DC_GENERATE_CACHE_VERSION}/${VERB}-${pageLang}.html`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

why switch from DC_DOMAIN to cacheHost? Isn't the proxy preferred for performance?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When I tried it, it was not loading.

@TsayAdobe TsayAdobe merged commit b38c7cf into stage Dec 13, 2024
7 of 8 checks passed
@TsayAdobe TsayAdobe added this to the 0.2502 milestone Dec 19, 2024
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