Skip to content

fix(site): article files after Underlay's $asset change - #153

Draft
tefkah wants to merge 1 commit into
site-and-gatewayfrom
site-underlay-assets
Draft

tefkah wants to merge 1 commit into
site-and-gatewayfrom
site-underlay-assets

Conversation

@tefkah

@tefkah tefkah commented Nov 25, 2026

Copy link
Copy Markdown
Member

Underlay now writes file references as {"$asset": "ul:asset:<hex>"} instead of {"$file": "sha256:<hex>"}, and serves files from /api/collections/<owner>/<slug>/assets/<hex> (the old /files/<hex> returns 404). That broke article HTML, images and downloads.

The site now reads both shapes through one assetHash() helper and downloads from /assets/. HTML inside releases still points to images as sha256:<hex>, which keeps working.

Checked in dev on /journal/extracellular-vesicles: the text, images and the PDF download (200, application/pdf) load.

Not changed: scripts/blog-to-underlay.ts still writes $file when it pushes the blog.

This branch has not been deployed

No deployments
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