diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-10-25 11:15:21 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-10-25 11:15:21 +0700 |
| commit | 9c13df19a6ffe0dbfa291404cdfa72c8633b7200 (patch) | |
| tree | 1f2db7ccb0fe35d445426e32958e790d568da074 /next.config.mjs | |
| parent | 053b45c6d4c7a8fa0853de9acab5f98642ed72dc (diff) | |
add pwa library
Diffstat (limited to 'next.config.mjs')
| -rw-r--r-- | next.config.mjs | 9 |
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; |
