Skip to content

Commit 81a51a0

Browse files
committed
feat: Add PWA support and update UI for General Materials
1 parent 181cbd3 commit 81a51a0

6 files changed

Lines changed: 3214 additions & 331 deletions

File tree

next.config.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
import type { NextConfig } from "next";
22

3+
const withPWA = require("@ducanh2912/next-pwa").default({
4+
dest: "public",
5+
cacheOnFrontEndNav: true,
6+
aggressiveFrontEndNavCaching: true,
7+
reloadOnOnline: true,
8+
swcMinify: true,
9+
disable: false, // Default: process.env.NODE_ENV === "development"
10+
workboxOptions: {
11+
disableDevLogs: true,
12+
},
13+
});
14+
315
const nextConfig: NextConfig = {
416
/* config options here */
517
};
618

7-
export default nextConfig;
19+
export default withPWA(nextConfig);

0 commit comments

Comments
 (0)