Exclude API routes from PWA navigation fallback
This commit is contained in:
@@ -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/"),
|
||||||
|
|||||||
Reference in New Issue
Block a user