Update Next to 14.0.2

This commit is contained in:
2023-11-13 21:04:05 +04:00
parent 1f60927d07
commit ddf1c16e6c
3 changed files with 199 additions and 167 deletions
+19 -3
View File
@@ -7,8 +7,6 @@ const withPWA = require('next-pwa')({
skipWaiting: true
})
const domains = process.env.NEXT_PUBLIC_DOMAINS_IMAGE.split(' ') || 'localhost'
module.exports = withPlausibleProxy()(withPWA({
webpack: config => {
config.module.rules.push({
@@ -20,6 +18,24 @@ module.exports = withPlausibleProxy()(withPWA({
},
swcMinify: true,
images: {
domains
remotePatterns: [
{
protocol: 'https',
hostname: 'api.oki.re',
},
{
protocol: 'https',
hostname: 'oki.re',
},
{
protocol: 'http',
hostname: '127.0.0.1',
},
{
protocol: 'http',
hostname: 'localhost',
},
]
}
}))