From 1b0c46e7a26d0b0fc0453d9105dcaaee0ddbb52c Mon Sep 17 00:00:00 2001 From: Till JS Date: Tue, 31 Mar 2026 17:04:49 +0200 Subject: [PATCH] fix(inventar-web): suppress prerender 404 for missing favicon.png App only provides favicon.svg; the PWA plugin's default includeAssets list also includes favicon.png which triggers a prerender error. Co-Authored-By: Claude Opus 4.6 --- apps/inventar/apps/web/svelte.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/inventar/apps/web/svelte.config.js b/apps/inventar/apps/web/svelte.config.js index a7a917e4c..12e2985cd 100644 --- a/apps/inventar/apps/web/svelte.config.js +++ b/apps/inventar/apps/web/svelte.config.js @@ -8,6 +8,13 @@ const config = { adapter: adapter({ out: 'build', }), + prerender: { + handleHttpError: ({ path, message }) => { + // Ignore missing PNG assets (app only provides favicon.svg) + if (path.endsWith('.png')) return; + throw new Error(message); + }, + }, }, };