Skip to content

Commit

Permalink
Use remotePatterns instead of domains for next/image config
Browse files Browse the repository at this point in the history
  • Loading branch information
rbourdon committed Nov 25, 2023
1 parent e31c514 commit 6cf9cd6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ module.exports = {
},
images: {
dangerouslyAllowSVG: true,
domains: ["media.graphcms.com", "media.graphassets.com"],
remotePatterns: [
{
protocol: "https",
hostname: "media.graphcms.com",
},
{
protocol: "https",
hostname: "media.graphassets.com",
},
],
},
experimental: {
workerThreads: false,
Expand Down

0 comments on commit 6cf9cd6

Please sign in to comment.