feat: add pwa support by next-pwa

This commit is contained in:
chenmoonmo authored and DarkSky committed 2023-01-03 12:05:13 +08:00
1 parent b54bbb0aa1
commit 75725beaf3
7 files changed
+2305 -523

No files matched your search

+6 -1
View File
@@ -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));