Files
pawol.nu/next.config.js
T
2023-11-13 21:04:05 +04:00

42 lines
767 B
JavaScript

const {withPlausibleProxy} = require('next-plausible')
const withPWA = require('next-pwa')({
disable: process.env.NODE_ENV !== 'production',
dest: 'public',
register: true,
skipWaiting: true
})
module.exports = withPlausibleProxy()(withPWA({
webpack: config => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack', 'url-loader'],
})
return config
},
swcMinify: true,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'api.oki.re',
},
{
protocol: 'https',
hostname: 'oki.re',
},
{
protocol: 'http',
hostname: '127.0.0.1',
},
{
protocol: 'http',
hostname: 'localhost',
},
]
}
}))