Skip to content

Commit

Permalink
Replace deprecated images.domains with images.remotePatterns
Browse files Browse the repository at this point in the history
  • Loading branch information
DinerIsmail committed Nov 21, 2023
1 parent 981e62e commit 4fb5deb
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,27 @@ const nextConfig = {
return config
},
images: {
domains: [
'resilienceweb.ams3.digitaloceanspaces.com',
'media.graphcms.com',
'media.graphassets.com',
'via.placeholder.com',
'opencollective.com',
remotePatterns: [
{
protocol: 'https',
hostname: 'resilienceweb.ams3.digitaloceanspaces.com',
},
{
protocol: 'https',
hostname: 'media.graphcms.com',
},
{
protocol: 'https',
hostname: 'media.graphassets.com',
},
{
protocol: 'https',
hostname: 'via.placeholder.com',
},
{
protocol: 'https',
hostname: 'opencollective.com',
},
],
formats: ['image/avif', 'image/webp'],
},
Expand Down

1 comment on commit 4fb5deb

@vercel
Copy link

@vercel vercel bot commented on 4fb5deb Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.