Files
pawol.nu/next.config.js
T

45 lines
832 B
JavaScript
Raw Normal View History

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
2026-04-16 12:52:51 +04:00
module.exports = (withPWA({
2026-04-16 22:31:08 +04:00
turbopack: {},
2023-07-14 19:23:08 +04:00
webpack: config => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack', 'url-loader'],
})
return config
2022-10-26 00:31:20 +04:00
},
2022-01-26 07:09:27 +04:00
images: {
2023-11-13 21:04:05 +04:00
remotePatterns: [
{
protocol: 'https',
hostname: 'api.oki.re',
2026-04-16 13:55:53 +04:00
pathname: '/uploads/**',
2023-11-13 21:04:05 +04:00
},
{
protocol: 'https',
hostname: 'oki.re',
},
{
protocol: 'http',
hostname: '127.0.0.1',
2026-04-16 13:55:53 +04:00
port: '1337',
pathname: '/uploads/**',
2023-11-13 21:04:05 +04:00
},
{
protocol: 'http',
hostname: 'localhost',
2026-04-16 13:55:53 +04:00
port: '1337',
pathname: '/uploads/**',
2023-11-13 21:04:05 +04:00
},
]
2022-01-26 07:09:27 +04:00
}
2022-10-27 06:51:45 +04:00
}))