fix: pwa start url updating
This commit is contained in:
+6
-7
@@ -10,8 +10,13 @@ const cache = require("next-pwa/cache")
|
||||
const withPWA = require("next-pwa")({
|
||||
dest: "public",
|
||||
publicExcludes: ["*"],
|
||||
dynamicStartUrl: false,
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: ({ request }) => {
|
||||
return request.headers.get("x-middleware-prefetch")
|
||||
},
|
||||
handler: "NetworkOnly",
|
||||
},
|
||||
{
|
||||
urlPattern: ({ url }) => {
|
||||
return /\/ipfs\/([^/?#]+)$/.test(url.toString())
|
||||
@@ -39,12 +44,6 @@ const withPWA = require("next-pwa")({
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
urlPattern: ({ request }) => {
|
||||
return request.headers.get("x-middleware-prefetch")
|
||||
},
|
||||
handler: "NetworkOnly",
|
||||
},
|
||||
// @ts-ignore
|
||||
...cache,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user