Files
pawol.nu/next.config.js
T
2026-04-16 22:31:08 +04:00

45 lines
832 B
JavaScript

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