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