Update next-pwa and change config

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-10-23 05:22:41 +04:00
parent 5a9c6b1c09
commit 41c77127c3
3 changed files with 202 additions and 160 deletions
+6 -7
View File
@@ -1,14 +1,13 @@
const withPWA = require('next-pwa')
const withPWA = require('next-pwa')({
disable: process.env.NODE_ENV !== 'production',
dest: 'public',
register: true,
skipWaiting: true
})
const domains = process.env.NEXT_PUBLIC_DOMAINS_IMAGE.split(' ') || 'localhost'
module.exports = withPWA({
pwa: {
disable: process.env.NODE_ENV !== 'production',
dest: 'public',
register: true,
skipWaiting: true,
},
swcMinify: true,
images: {
domains