Files
pawol.nu/next.config.js
T

44 lines
815 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',
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/**',
},
]
}
}))