Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit aa2f79eb7c38ba5ca83810d779ec6dd8d4b56ded
parent c285d99d6ec5f3835117f8b8f48a8bba612fb01c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  9 Nov 2026 14:21:49 -0500

umtool: the intro words' face path survives the server bundle (assetFile's rule, inline)

chrome-deck imports chrome-intro, so the module registry brings it into
build-video's static chain, where fileURLToPath refuses the bundler's asset URL at
module load and next build failed collecting page data (docs/quirks.md).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/report-to-video/chrome-intro.mjs | 15++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/umtool/report-to-video/chrome-intro.mjs b/umtool/report-to-video/chrome-intro.mjs @@ -31,10 +31,19 @@ const r3 = (v) => Math.round(v * 1000) / 1000; * The words' face (`title`, `lines`): Archivo, the face the wordmark's letters * were drawn from (intro-glyphs.mjs), copied in beside the page as * `assets/IntroDisplay.ttf` under a private name -- only when the page draws - * words, so a page without them loads no face, as it never did. Reached only - * through a dynamic import of this module (chrome-teaser.mjs says why). + * words, so a page without them loads no face, as it never did. */ -export const INTRO_FONT_FILE = fileURLToPath(new URL("./fonts/Archivo[wdth,wght].ttf", import.meta.url)); +export const INTRO_FONT_FILE = (() => { + // chrome-deck.mjs assetFile's rule, inline (chrome-deck imports this module): chrome-deck brings this module into + // build-video's static chain, and in umtool's server bundle the asset URL is the bundler's own, which + // fileURLToPath refuses at module load (docs/quirks.md) -- its string is kept there. + const url = new URL("./fonts/Archivo[wdth,wght].ttf", import.meta.url); + try { + return fileURLToPath(url); + } catch { + return String(url); + } +})(); export const INTRO_FONT_ASSET = "assets/IntroDisplay.ttf"; const esc = (s) =>