Skip to content

fix: skip the link check on image builds, narrow the og-image cache - #213

Merged
ppawlowski merged 4 commits into
mainfrom
build-website-og-image-font-cache
Aug 14, 2026
Merged

fix: skip the link check on image builds, narrow the og-image cache#213
ppawlowski merged 4 commits into
mainfrom
build-website-og-image-font-cache

Conversation

@dimitrieh

@dimitrieh dimitrieh commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Contributes to Website preview on documentation pull requests.

Two fixes to the shared build, both surfaced by FlowFuse/website#5515 calling it instead of running its own steps.

og-image cache. FlowFuse/website#5562 keyed it on github.run_id, so it wrote a fresh entry every run. Only the font download is worth keeping, so this caches that one directory keyed on the lockfile that pins the module. Measured on website main, it saves about 35s and the entry is 2.5 MB.

Link check. With deploy_preview set, Nuxt Image points every <img> at /.netlify/images, which Netlify only answers at runtime, so hyperlink reads every image as a broken link and cannot be told to ignore the path. The check now runs on the builds that keep real file paths. This is what fails FlowFuse/flowfuse#8070 today.

fix: cuts a patch and force-moves build_website/v1, so neither caller needs a ref change.

FlowFuse/website's own test.yml cached two directories under a github.run_id
key, so every run wrote a fresh entry. Measured on website main, the entry is
2.5MB, restores in 1s, and 53 of them were live. Build the forge took 1359s
with it against 1394s without, so the render directory was buying nothing.

This keeps only the font download, keyed on the lockfile that pins the module,
so an unchanged lockfile hits exactly and saves nothing back.
@dimitrieh dimitrieh changed the title perf: cache the nuxt-og-image font download in build_website fix: skip the link check on image builds, narrow the og-image cache Aug 13, 2026
@dimitrieh

Copy link
Copy Markdown
Contributor Author

Added a second fix here rather than opening another pull request, since it touches the same file. With deploy_preview set, the build processes images and hyperlink then reports every image as a broken link, which is what fails FlowFuse/flowfuse#8070 right now. Reasoning is in the body, and the title changed to match.

@ppawlowski
ppawlowski merged commit 57803ab into main Aug 14, 2026
3 checks passed
@ppawlowski
ppawlowski deleted the build-website-og-image-font-cache branch August 14, 2026 06:13
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.

2 participants