Skip to content

Commit

Permalink
use remotePatterns instead of domains in Next config
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke committed Sep 25, 2023
1 parent ac9f1f1 commit 214bc8f
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,27 @@ const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
domains: [
"replicate.com",
"replicate.delivery",
"pbxt.replicate.delivery",
"user-images.githubusercontent.com",
"upcdn.io"
remotePatterns: [
{
protocol: "https",
hostname: "replicate.com",
},
{
protocol: "https",
hostname: "replicate.delivery",
},
{
protocol: "https",
hostname: "*.replicate.delivery",
},
{
protocol: "https",
hostname: "user-images.githubusercontent.com",
},
{
protocol: "https",
hostname: "upcdn.io",
},
],
},
async redirects() {
Expand All @@ -22,9 +37,9 @@ const nextConfig = {
source: "/deploy",
destination: "https://vercel.com/templates/next.js/scribble-diffusion",
permanent: false,
},
]
}
},
];
},
};

module.exports = nextConfig;

0 comments on commit 214bc8f

Please sign in to comment.