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({
|
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',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
protocol: 'https',
|
|
|
|
|
hostname: 'oki.re',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
protocol: 'http',
|
|
|
|
|
hostname: '127.0.0.1',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
protocol: 'http',
|
|
|
|
|
hostname: 'localhost',
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
|
2022-01-26 07:09:27 +04:00
|
|
|
}
|
2022-10-27 06:51:45 +04:00
|
|
|
}))
|