summaryrefslogtreecommitdiff
path: root/next.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'next.config.js')
-rw-r--r--next.config.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/next.config.js b/next.config.js
index d02aa9f0..2f3f4396 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,4 +1,11 @@
/** @type {import('next').NextConfig} */
+const withPWA = require('next-pwa')({
+ dest: 'public',
+ register: true,
+ disable: process.env.NODE_ENV === 'development',
+ skipWaiting: true
+})
+
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
@@ -25,4 +32,4 @@ const nextConfig = {
}
}
-module.exports = nextConfig
+module.exports = withPWA(nextConfig)