Revert "chore: disable sw precache"

This reverts commit fc1310af13.
This commit is contained in:
DIYgod 2023-06-15 22:27:34 +01:00
parent fc1310af13
commit fc9e02e1ed
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,11 @@ const withPWA = require("@ducanh2912/next-pwa").default({
disable: process.env.NODE_ENV === "development",
dest: "public",
publicExcludes: ["*"],
buildExcludes: [/./],
buildExcludes: [
/\.map$/,
/^manifest.*\.js$/,
/^\/_next\/static\/chunks\/app\/dashboard/,
],
extendDefaultRuntimeCaching: true,
workboxOptions: {
runtimeCaching: [