22 lines
462 B
JavaScript
22 lines
462 B
JavaScript
const {withPlausibleProxy} = require('next-plausible')
|
|
|
|
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(withPlausibleProxy({
|
|
webpack: {
|
|
test: /\.svg$/,
|
|
use: ['@svgr/webpack', 'url-loader'],
|
|
},
|
|
swcMinify: true,
|
|
images: {
|
|
domains
|
|
}
|
|
}))
|