fix(shared-pwa): remove favicon.png from default include assets

No ManaCore app provides favicon.png (all use favicon.svg). The default
caused prerender 404 errors for any app with an /offline page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 17:15:07 +02:00
parent 1b0c46e7a2
commit 019ad557d4
2 changed files with 1 additions and 8 deletions

View file

@ -8,13 +8,6 @@ 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);
},
},
},
};

View file

@ -17,7 +17,7 @@ export const DEFAULT_CATEGORIES = ['productivity', 'utilities'];
/**
* Default assets to include in PWA
*/
export const DEFAULT_INCLUDE_ASSETS = ['favicon.png', 'favicon.svg'];
export const DEFAULT_INCLUDE_ASSETS = ['favicon.svg'];
/**
* Default glob patterns for precaching