fix: exclude index.html from workbox precache to prevent stale 401 app shell (#7255)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
api2062
2026-03-15 16:43:54 -07:00
committed by GitHub
parent 60d4a62f0a
commit ee550f4fe3

View File

@@ -221,7 +221,7 @@ export default defineNuxtConfig({
navigateFallback: "/",
navigateFallbackAllowlist: [/^(?!\/api|\/docs)/],
globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
globIgnores: ["404.html", "200.html"],
globIgnores: ["404.html", "200.html", "index.html"],
cleanupOutdatedCaches: true,
skipWaiting: true,
clientsClaim: true,