use images.remotePatterns for allowed image domains

This commit is contained in:
saml33 2024-03-04 14:12:31 +11:00
parent d6d2648d97
commit 08f20147e4
1 changed files with 13 additions and 6 deletions

View File

@ -6,12 +6,19 @@ const { withSentryConfig } = require('@sentry/nextjs')
const nextConfig = {
i18n,
images: {
domains: [
'raw.githubusercontent.com',
'arweave.net',
'www.dual.finance',
'shdw-drive.genesysgo.net',
'images.ctfassets.net',
remotePatterns: [
{
protocol: 'https',
hostname: 'raw.githubusercontent.com/**',
},
{
protocol: 'https',
hostname: 'arweave.net/**',
},
{
protocol: 'https',
hostname: 'images.ctfassets.net/**',
},
],
},
reactStrictMode: true,