mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:41:09 +02:00
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:
parent
1b0c46e7a2
commit
019ad557d4
2 changed files with 1 additions and 8 deletions
|
|
@ -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);
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue