diff options
Diffstat (limited to 'packages/web/next.config.mjs')
| -rw-r--r-- | packages/web/next.config.mjs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/web/next.config.mjs b/packages/web/next.config.mjs index 3ebca31a..0aa37287 100644 --- a/packages/web/next.config.mjs +++ b/packages/web/next.config.mjs @@ -1,5 +1,12 @@ +import pwa from "next-pwa"; + +const withPWA = pwa({ + dest: "public", + disable: process.env.NODE_ENV != "production", +}); + /** @type {import('next').NextConfig} */ -const nextConfig = { +const nextConfig = withPWA({ output: "standalone", async headers() { return [ @@ -27,6 +34,6 @@ const nextConfig = { }, ]; }, -}; +}); export default nextConfig; |
