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); + }, + }, }, };