feat: integrate PWA support with manifest, service workers, and viewport configuration

This commit is contained in:
Firman Ramdhani
2026-09-03 12:56:42 +07:00
parent aca2b325f2
commit 83a09a4c03
16 changed files with 1483 additions and 26 deletions
+16 -1
View File
@@ -1,7 +1,22 @@
import type { NextConfig } from "next";
import withPWAInit from "@ducanh2912/next-pwa";
const withPWA = withPWAInit({
dest: "public",
disable: process.env.NODE_ENV === "development",
register: true,
cacheOnFrontEndNav: true,
aggressiveFrontEndNavCaching: true,
reloadOnOnline: true,
workboxOptions: {
skipWaiting: true,
disableDevLogs: true,
},
});
const nextConfig: NextConfig = {
/* config options here */
turbopack: {},
};
export default nextConfig;
export default withPWA(nextConfig);