Files
pawol.nu/next.config.js
T
2026-04-16 12:52:51 +04:00

39 lines
672 B
JavaScript

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