-
-
Notifications
You must be signed in to change notification settings - Fork 129
Description
Description:
When generating static reports using unlighthouse-ci
, the timeline thumbnails for the screenshot step appear broken. A live example can be found at uxit.fil.org/site-audit-reports/ramo.
The full-page screenshot loads correctly, but the timeline thumbnails do not—indicating a potential issue in how thumbnail paths are being resolved or generated.
Configuration:
We are using a custom config for Unlighthouse located here.
Everything seems correctly saved under the appropriate folder and router prefix. The output directory and base path settings are configured, and most things display correctly except these thumbnails.
Comparison:
Here’s a comparison of the full-page screenshot path vs. the broken thumbnail path in the rendered HTML:
<!-- Full page screenshot - works -->
<img src="/site-audit-reports/ramo/reports/screenshot.jpeg" />
<!-- Timeline thumbnails - broken -->
<img src="reports/__screenshot-thumbnails__/0.jpeg" />
Note how the timeline thumbnail does not respect the configured router prefix (/site-audit-reports/ramo
), leading to 404 errors when trying to display them.
Expected Behavior:
Thumbnails should use the correct router prefix or relative path so that they load correctly on the page.
Question:
Is there a missing config option to correctly resolve the thumbnail paths with a custom base path or output directory? Or is this a bug in how the paths are generated in the final HTML?
Environment:
"@unlighthouse/cli": "^0.16.3",
"@unlighthouse/core": "^0.16.3",
Thanks in advance! Let me know if you need more details.
Reproduction
System Info
System:
OS: macOS 15.3.2
CPU: (10) arm64 Apple M1 Pro
Memory: 192.31 MB / 32.00 GB
Shell: 4.0.1 - /opt/homebrew/bin/fish
Binaries:
Node: 23.10.0 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.9.2 - /opt/homebrew/bin/npm
pnpm: 8.7.6 - /opt/homebrew/bin/pnpm
Browsers:
Brave Browser: 122.1.63.174
Chrome: 135.0.7049.97
Safari: 18.3.1