Config next/image and add domains to env
This commit is contained in:
+6
-1
@@ -1,5 +1,7 @@
|
||||
const withPWA = require('next-pwa')
|
||||
|
||||
const domains = process.env.NEXT_PUBLIC_DOMAINS_IMAGE.split(' ') || 'localhost'
|
||||
|
||||
module.exports = withPWA({
|
||||
pwa: {
|
||||
disable: process.env.NODE_ENV !== 'production',
|
||||
@@ -7,5 +9,8 @@ module.exports = withPWA({
|
||||
register: true,
|
||||
skipWaiting: true,
|
||||
},
|
||||
swcMinify: true
|
||||
swcMinify: true,
|
||||
images: {
|
||||
domains
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user