Migrate to @ducanh2912/next-pwa

This commit is contained in:
2023-07-17 13:07:11 +05:30
parent dea3f607aa
commit 427744fc68
3 changed files with 559 additions and 923 deletions
+1 -4
View File
@@ -1,11 +1,8 @@
const runtimeCaching = require("next-pwa/cache");
const withPWA = require("next-pwa")({
const withPWA = require("@ducanh2912/next-pwa").default({
dest: "public",
skipWaiting: true,
register: true,
sw: "/sw.js",
runtimeCaching,
dynamicStartUrl: false,
});
+557 -918
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -9,6 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@ducanh2912/next-pwa": "^9.2.1",
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/react-dom": "18.2.7",
@@ -17,7 +18,6 @@
"eslint": "8.44.0",
"eslint-config-next": "13.4.9",
"next": "13.4.9",
"next-pwa": "^5.6.0",
"postcss": "8.4.26",
"react": "18.2.0",
"react-dom": "18.2.0",