coveo / ui-kit

Coveo UI kit repository, home of @coveo/headless, @coveo/atomic, and more.
Apache License 2.0
51 stars 34 forks source link

fix(atomic, atomic-react): use root-relative URL for CDN #4431

Closed louis-bompart closed 1 week ago

louis-bompart commented 1 week ago

This ensures the code we deployed to the CDN is environment agnostic. Currently for example, we try to use Headless from static.cloud.coveo.com in Atomic from staticdev.cloud.coveo.com

https://coveord.atlassian.net/browse/KIT-3571

See https://developer.mozilla.org/en-US/docs/Web/API/URL_API/Resolving_relative_references#root_relative

github-actions[bot] commented 1 week ago

Pull Request Report

PR Title

:white_check_mark: Title follows the conventional commit spec.

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 239.2 239.2 0
commerce 337.8 337.8 0
search 407.2 407.2 0
insight 392.1 392.1 0
recommendation 250 250 0
ssr 401.3 401.3 0
ssr-commerce 350 350 0

SSR Progress

Use case SSR (#) CSR (#) Progress (%)
search 39 44 89
recommendation 0 4 0
case-assist 0 6 0
insight 0 27 0
commerce 0 15 0
Detailed logs search : buildInteractiveResult
search : buildInteractiveInstantResult
search : buildInteractiveRecentResult
search : buildInteractiveCitation
search : buildGeneratedAnswer
recommendation : missing SSR support
case-assist : missing SSR support
insight : missing SSR support
commerce : missing SSR support