summaryrefslogtreecommitdiff
path: root/next.config.js
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2023-05-17 01:55:14 +0000
committerIT Fixcomart <it@fixcomart.co.id>2023-05-17 01:55:14 +0000
commite16d278e6c63177d488bb8b5c62cedc898906c09 (patch)
tree2b2a20ea2ac439ec2945f921f21f9160cd7b6c28 /next.config.js
parent6608d0e62fd232cbc19f42f58d1f56cfe2ef6842 (diff)
parent0abaa462194715c25cee5fcede0da3085939b402 (diff)
Merged in master (pull request #8)
Master
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)