Exclude API routes from PWA navigation fallback

This commit is contained in:
Codex
2026-04-24 10:01:27 -05:00
parent 022609191f
commit 6e93a03b0f

View File

@@ -23,6 +23,7 @@ export default defineConfig(({ mode }) => {
"apple-splash-1290x2796.png", "apple-splash-1290x2796.png",
], ],
workbox: { workbox: {
navigateFallbackDenylist: [/^\/api\//],
runtimeCaching: [ runtimeCaching: [
{ {
urlPattern: ({ url }) => url.pathname.startsWith("/api/media/files/"), urlPattern: ({ url }) => url.pathname.startsWith("/api/media/files/"),