Skip to content

Resolve the 404 illustration through the asset map - #507

Open
phndiaye wants to merge 1 commit into
masterfrom
pn/asset-map-404-illustration
Open

phndiaye wants to merge 1 commit into
masterfrom
pn/asset-map-404-illustration

Conversation

@phndiaye

Copy link
Copy Markdown
Member

HttpErrorsCode hardcoded /@upfluence/ember-upf-utils/assets/images/ufo-abduction.svg. Classic apps get it rewritten to the CDN by broccoli-asset-rev; Vite apps don't, so the image 404s on the page's own host once an app builds with a CDN base (ambassador-web's 404 route in the Vite pilot). It now goes through OSS's asset-map helper, which classic apps fill through injectAssetMap and Vite apps through assetMap(). OSS has shipped that helper since 4.0, so the peer range doesn't move.

  • New test: the illustration URL is the asset-map resolution.

Checked locally: lint, typecheck, http-errors-code tests 12/12. Packed into ambassador-web, both the classic staging build and the Vite pilot serve it from the CDN with a hash.

Same issue on the OSS side: upfluence/oss-components#752.

HttpErrorsCode hardcoded `/@upfluence/ember-upf-utils/assets/images/ufo-abduction.svg`. Classic apps get it rewritten
to the CDN by broccoli-asset-rev; Vite apps don't, so the URL hits the page's own host and 404s once an app builds with
a CDN `base`. It now goes through OSS's `asset-map` helper, which classic apps fill through `injectAssetMap` and Vite
apps through `assetMap()`. OSS has shipped that helper since 4.0, so the peer range doesn't move.
@phndiaye
phndiaye requested a review from a team as a code owner November 24, 2026 13:55
@phndiaye
phndiaye requested review from OwenCoogan, aprentout and nathalieArnoux and removed request for a team November 24, 2026 13:55
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.

1 participant