From dea3f607aae8962a8daf1bdff8d5ef8d9410b624 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Mon, 17 Jul 2023 12:39:09 +0530 Subject: [PATCH] Update next-pwa settings --- next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.js b/next.config.js index f6b7ad4..e361cf0 100644 --- a/next.config.js +++ b/next.config.js @@ -1,8 +1,12 @@ +const runtimeCaching = require("next-pwa/cache"); + const withPWA = require("next-pwa")({ dest: "public", skipWaiting: true, register: true, sw: "/sw.js", + runtimeCaching, + dynamicStartUrl: false, }); /** @type {import('next').NextConfig} */