Procházet zdrojové kódy

add runtimeCaching

AykutSarac před 3 roky
rodič
revize
3776109953
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      next.config.js

+ 2 - 0
next.config.js

@@ -1,4 +1,5 @@
 const withPWA = require("next-pwa");
+const runtimeCaching = require("next-pwa/cache");
 
 /**
  * @type {import('next').NextConfig}
@@ -14,6 +15,7 @@ const nextConfig = {
   },
   pwa: {
     disable: process.env.NODE_ENV === "development",
+    runtimeCaching,
     dest: "public",
     register: true,
     fallbacks: {