소스 검색

add runtimeCaching

AykutSarac 3 년 전
부모
커밋
3776109953
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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: {