summaryrefslogtreecommitdiff
path: root/next.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'next.config.js')
-rw-r--r--next.config.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/next.config.js b/next.config.js
index 767719f..cb8597e 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,4 +1,14 @@
/** @type {import('next').NextConfig} */
-const nextConfig = {}
+const withPWA = require("@ducanh2912/next-pwa").default({
+ dest: "public",
+ cacheOnFrontEndNav: true,
+ aggressiveFrontEndNavCaching: true,
+ reloadOnOnline: true,
+ swcMinify: true,
+ disable: process.env.NODE_ENV === "development",
+ workboxOptions: { disableDevLogs: true },
+});
-module.exports = nextConfig
+const nextConfig = {};
+
+module.exports = withPWA(nextConfig);