summaryrefslogtreecommitdiff
path: root/next.config.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'next.config.mjs')
-rw-r--r--next.config.mjs9
1 files changed, 8 insertions, 1 deletions
diff --git a/next.config.mjs b/next.config.mjs
index 4678774..ab509d0 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -1,4 +1,11 @@
+import withPWA from 'next-pwa';
+
/** @type {import('next').NextConfig} */
-const nextConfig = {};
+const nextConfig = withPWA({
+ dest: 'public',
+ register: true,
+ disable: process.env.NODE_ENV === 'development',
+ skipWaiting: true
+});
export default nextConfig;