feat: add pwa support by next-pwa

This commit is contained in:
chenmoonmo
2023-01-03 11:43:59 +08:00
committed by DarkSky
parent b54bbb0aa1
commit 75725beaf3
7 changed files with 2305 additions and 523 deletions

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));