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 = { const nextConfig = {
i18n, i18n,
images: { images: {
domains: [ remotePatterns: [
'raw.githubusercontent.com', {
'arweave.net', protocol: 'https',
'www.dual.finance', hostname: 'raw.githubusercontent.com/**',
'shdw-drive.genesysgo.net', },
'images.ctfassets.net', {
protocol: 'https',
hostname: 'arweave.net/**',
},
{
protocol: 'https',
hostname: 'images.ctfassets.net/**',
},
], ],
}, },
reactStrictMode: true, reactStrictMode: true,