mirror of
https://github.com/NeuralNomadsAI/CodeNomad.git
synced 2026-08-19 21:33:25 +00:00
fix(ui): raise Workbox precache size limit
This commit is contained in:
parent
bd9a8d9788
commit
63ffb86ea7
1 changed files with 7 additions and 4 deletions
|
|
@ -77,10 +77,13 @@ export default defineConfig({
|
|||
theme_color: "#1a1a1a",
|
||||
},
|
||||
workbox: {
|
||||
// Preserve server-side auth redirects (e.g., /login) instead of serving cached index.html.
|
||||
navigateFallback: null,
|
||||
// Only precache static assets (avoid caching HTML documents / routes).
|
||||
globPatterns: ["**/*.{js,css,png,jpg,jpeg,svg,webp,ico,woff,woff2,ttf,eot,json,webmanifest}"],
|
||||
// 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.
|
||||
navigateFallback: null,
|
||||
// Only precache static assets (avoid caching HTML documents / routes).
|
||||
globPatterns: ["**/*.{js,css,png,jpg,jpeg,svg,webp,ico,woff,woff2,ttf,eot,json,webmanifest}"],
|
||||
// Monaco assets can be large; cache them at runtime instead.
|
||||
globIgnores: [
|
||||
"**/*.html",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue