init next-pwa
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -64,3 +64,5 @@ yarn-error.log*
|
|||||||
# typescript
|
# typescript
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
public/sw.js
|
||||||
|
public/workbox-*.js
|
||||||
|
|||||||
4
FIXME.md
Normal file
4
FIXME.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# FIXME
|
||||||
|
|
||||||
|
- [] minimatch types
|
||||||
|
https://github.com/strapi/strapi/issues/23859
|
||||||
@@ -1,7 +1,19 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const withPWA = require("next-pwa")({
|
||||||
/* config options here */
|
dest: "public",
|
||||||
};
|
register: true,
|
||||||
|
skipWaiting: true,
|
||||||
|
disable: process.env.NODE_ENV === "development",
|
||||||
|
});
|
||||||
|
|
||||||
|
// const nextConfig: NextConfig = {
|
||||||
|
// /* config options here */
|
||||||
|
// };
|
||||||
|
|
||||||
|
const nextConfig: NextConfig = withPWA({
|
||||||
|
/* config options here */
|
||||||
|
reactStrictMode: true,
|
||||||
|
});
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"lucide-react": "^0.539.0",
|
"lucide-react": "^0.539.0",
|
||||||
"next": "15.4.6",
|
"next": "15.4.6",
|
||||||
|
"next-pwa": "^5.6.0",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-dom": "19.1.0",
|
"react-dom": "19.1.0",
|
||||||
"tailwind-merge": "^3.3.1"
|
"tailwind-merge": "^3.3.1"
|
||||||
@@ -30,5 +31,8 @@
|
|||||||
"tailwindcss": "^4",
|
"tailwindcss": "^4",
|
||||||
"tw-animate-css": "^1.3.6",
|
"tw-animate-css": "^1.3.6",
|
||||||
"typescript": "^5"
|
"typescript": "^5"
|
||||||
|
},
|
||||||
|
"overrides": {
|
||||||
|
"@types/minimatch": "5.1.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
20
public/manifest.json
Normal file
20
public/manifest.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"name": "iCal PWA",
|
||||||
|
"short_name": "iCal",
|
||||||
|
"start_url": "/",
|
||||||
|
"background_color": "#ffffff",
|
||||||
|
"theme_color": "#1d4ed8",
|
||||||
|
"display": "standalone",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "/icons/icon-192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/icons/icon-512.png",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"type": "image/png"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user