We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cfa216 commit 6f70979Copy full SHA for 6f70979
next.config.js
@@ -1,7 +1,10 @@
1
-const withPWA = require('next-pwa')({
2
- disable: process.env.NODE_ENV !== 'production',
3
- dest: 'public',
4
-});
+const enablePWA = process.env.ENABLE_PWA === 'true';
+const withPWA = enablePWA
+ ? require('next-pwa')({
+ disable: process.env.NODE_ENV !== 'production',
5
+ dest: 'public',
6
+ })
7
+ : (config) => config;
8
9
/** @type {import('next').NextConfig} */
10
const nextConfig = {
0 commit comments