feat: add pwa support by next-pwa
This commit is contained in:
1 parent
b54bbb0aa1
commit
75725beaf3
7 files changed
+2305
-523
No files matched your search
@@ -70,4 +70,9 @@ const withDebugLocal = require('next-debug-local')(
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = withDebugLocal(nextConfig);
|
||||
const withPWA = require('next-pwa')({
|
||||
dest: 'public',
|
||||
disable: process.env.NODE_ENV !== 'production',
|
||||
});
|
||||
|
||||
module.exports = withDebugLocal(withPWA(nextConfig));
|
||||
Reference in new issue
Block a user