fix(ui): raise Workbox precache size limit
This commit is contained in:
@@ -77,6 +77,9 @@ export default defineConfig({
|
|||||||
theme_color: "#1a1a1a",
|
theme_color: "#1a1a1a",
|
||||||
},
|
},
|
||||||
workbox: {
|
workbox: {
|
||||||
|
// Workbox defaults to 2 MiB; our main bundle can slightly exceed that.
|
||||||
|
// This is a build-time limit for the precache manifest, not a hard runtime cap.
|
||||||
|
maximumFileSizeToCacheInBytes: 3 * 1024 * 1024,
|
||||||
// Preserve server-side auth redirects (e.g., /login) instead of serving cached index.html.
|
// Preserve server-side auth redirects (e.g., /login) instead of serving cached index.html.
|
||||||
navigateFallback: null,
|
navigateFallback: null,
|
||||||
// Only precache static assets (avoid caching HTML documents / routes).
|
// Only precache static assets (avoid caching HTML documents / routes).
|
||||||
|
|||||||
Reference in New Issue
Block a user