init next-pwa

This commit is contained in:
2025-08-14 15:38:33 -04:00
parent 7c947e58c6
commit 92e4524268
6 changed files with 659 additions and 3 deletions

2
.gitignore vendored
View File

@@ -64,3 +64,5 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
public/sw.js
public/workbox-*.js

4
FIXME.md Normal file
View File

@@ -0,0 +1,4 @@
# FIXME
- [] minimatch types
https://github.com/strapi/strapi/issues/23859

614
bun.lock

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,19 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
const withPWA = require("next-pwa")({
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;

View File

@@ -15,6 +15,7 @@
"clsx": "^2.1.1",
"lucide-react": "^0.539.0",
"next": "15.4.6",
"next-pwa": "^5.6.0",
"react": "19.1.0",
"react-dom": "19.1.0",
"tailwind-merge": "^3.3.1"
@@ -30,5 +31,8 @@
"tailwindcss": "^4",
"tw-animate-css": "^1.3.6",
"typescript": "^5"
},
"overrides": {
"@types/minimatch": "5.1.2"
}
}

20
public/manifest.json Normal file
View 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"
}
]
}