2022-01-09 21:18:11 +04:00
|
|
|
const withPWA = require('next-pwa')
|
2020-12-23 00:07:21 +01:00
|
|
|
|
2022-01-26 07:09:27 +04:00
|
|
|
const domains = process.env.NEXT_PUBLIC_DOMAINS_IMAGE.split(' ') || 'localhost'
|
|
|
|
|
|
2022-01-09 21:18:11 +04:00
|
|
|
module.exports = withPWA({
|
|
|
|
|
pwa: {
|
2022-01-21 07:51:15 +04:00
|
|
|
disable: process.env.NODE_ENV !== 'production',
|
2022-01-09 21:18:11 +04:00
|
|
|
dest: 'public',
|
|
|
|
|
register: true,
|
|
|
|
|
skipWaiting: true,
|
2022-01-17 22:28:31 +04:00
|
|
|
},
|
2022-01-26 07:09:27 +04:00
|
|
|
swcMinify: true,
|
|
|
|
|
images: {
|
|
|
|
|
domains
|
|
|
|
|
}
|
2022-01-09 21:18:11 +04:00
|
|
|
})
|