From b6f05f6828c32349ef7deb695bf83bb90c84ced7 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Tue, 22 Sep 2026 23:07:59 +0530 Subject: [PATCH] Preload the fonts the design actually uses The document still preloaded the Archivo file the old design used, which is now gone: a 404 on every page load. It preloads Playfair Display and Plus Jakarta Sans instead, and the asset test names a font that exists. --- src/render/layout.ts | 9 ++++++++- test/routes.test.ts | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/render/layout.ts b/src/render/layout.ts index 7b4e087..77f593f 100644 --- a/src/render/layout.ts +++ b/src/render/layout.ts @@ -34,7 +34,14 @@ export function renderDocument(input: DocumentInput): Html { + { const css = await app.inject({ method: 'GET', url: '/assets/styles.css' }); assert.equal(css.statusCode, 200); assert.match(css.headers['content-type'] ?? '', /text\/css/); - const font = await app.inject({ method: 'GET', url: '/assets/fonts/archivo-latin.woff2' }); + const font = await app.inject({ method: 'GET', url: '/assets/fonts/playfair-display-latin.woff2' }); assert.equal(font.statusCode, 200); });