diff --git a/next.config.js b/next.config.js index 59570fe2..4d7c76a8 100644 --- a/next.config.js +++ b/next.config.js @@ -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, ],