Files
pawol.nu/next.config.js
T

22 lines
464 B
JavaScript
Raw Normal View History

2022-10-27 06:51:45 +04:00
const {withPlausibleProxy} = require('next-plausible')
2022-10-23 05:22:41 +04:00
const withPWA = require('next-pwa')({
disable: process.env.NODE_ENV !== 'production',
dest: 'public',
register: true,
skipWaiting: true
})
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-10-27 07:02:02 +04:00
module.exports = withPlausibleProxy()(withPWA({
2022-10-26 00:31:20 +04:00
webpack: {
test: /\.svg$/,
use: ['@svgr/webpack', 'url-loader'],
},
2022-01-26 07:09:27 +04:00
swcMinify: true,
images: {
domains
}
2022-10-27 06:51:45 +04:00
}))