Skip to content

Commit 6f70979

Browse files
committed
fix: next build
1 parent 8cfa216 commit 6f70979

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

next.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
const withPWA = require('next-pwa')({
2-
disable: process.env.NODE_ENV !== 'production',
3-
dest: 'public',
4-
});
1+
const enablePWA = process.env.ENABLE_PWA === 'true';
2+
const withPWA = enablePWA
3+
? require('next-pwa')({
4+
disable: process.env.NODE_ENV !== 'production',
5+
dest: 'public',
6+
})
7+
: (config) => config;
58

69
/** @type {import('next').NextConfig} */
710
const nextConfig = {

0 commit comments

Comments
 (0)