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 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 17:04:49 +02:00
parent 6e75718cfa
commit 1b0c46e7a2

View file

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