feat: add PWA support with manifest configuration and offline connectivity indicator

This commit is contained in:
poyrazavsever
2026-06-06 21:53:06 +03:00
parent 83379a5edc
commit 4a52deec4d
6 changed files with 2221 additions and 1 deletions
+9 -1
View File
@@ -1,4 +1,12 @@
import type { NextConfig } from "next";
import withPWAInit from "@ducanh2912/next-pwa";
const withPWA = withPWAInit({
dest: "public",
disable: process.env.NODE_ENV === "development",
register: true,
skipWaiting: true,
});
const nextConfig: NextConfig = {
output: "standalone",
@@ -9,4 +17,4 @@ const nextConfig: NextConfig = {
},
};
export default nextConfig;
export default withPWA(nextConfig);