Update next-pwa and change config
This commit is contained in:
+6
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user