Skip to content

Commit b6bb955

Browse files
committed
feat(PWA): add next-pwa, add images, add configuration file and fix some aria-label
1 parent 43a09b7 commit b6bb955

16 files changed

+2826
-461
lines changed

Diff for: next.config.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
const withPWA = require("next-pwa")({
2+
dest: "public",
3+
disable: process.env.NODE_ENV === "development",
4+
});
5+
16
/** @type {import('next').NextConfig} */
27
const nextConfig = {
38
reactStrictMode: true,
4-
}
9+
};
510

6-
module.exports = nextConfig
11+
module.exports = withPWA(nextConfig);

Diff for: package.json

+7-13
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,10 @@
1313
"@radix-ui/react-dialog": "^1.0.4",
1414
"@radix-ui/react-dropdown-menu": "^2.0.5",
1515
"@tailwindcss/forms": "^0.5.6",
16-
"@types/node": "20.6.2",
17-
"@types/react": "18.2.21",
18-
"@types/react-dom": "18.2.7",
19-
"@uidotdev/usehooks": "^2.3.1",
20-
"autoprefixer": "10.4.15",
21-
"eslint": "8.49.0",
22-
"eslint-config-next": "13.4.19",
23-
"google-libphonenumber": "^3.2.33",
2416
"libphonenumber-js": "^1.10.44",
2517
"lucide-react": "^0.279.0",
2618
"next": "13.4.19",
19+
"next-pwa": "^5.6.0",
2720
"next-seo": "^6.1.0",
2821
"next-sitemap": "^4.2.3",
2922
"nookies": "^2.5.2",
@@ -32,16 +25,17 @@
3225
"react-dom": "18.2.0",
3326
"react-hook-form": "^7.46.1",
3427
"react-input-mask": "3.0.0-alpha.2",
35-
"react-international-phone": "^3.1.2",
36-
"react-phone-number-input": "^3.3.6",
37-
"react-telephone": "^1.4.3",
3828
"tailwindcss": "3.3.3",
3929
"typescript": "5.2.2"
4030
},
4131
"devDependencies": {
42-
"@types/google-libphonenumber": "^7.4.26",
32+
"@types/node": "20.6.2",
33+
"@types/react": "18.2.21",
34+
"@types/react-dom": "18.2.7",
4335
"@types/react-input-mask": "^3.0.2",
44-
"daisyui": "^3.7.6",
36+
"autoprefixer": "10.4.15",
37+
"eslint": "8.49.0",
38+
"eslint-config-next": "13.4.19",
4539
"msw": "^1.3.1",
4640
"nanoid": "^5.0.1"
4741
},

0 commit comments

Comments
 (0)