Skip to content

Commit

Permalink
Merge pull request #73 from replicate/update-allowed-domains
Browse files Browse the repository at this point in the history
allow images from pbxt.replicate.delivery
  • Loading branch information
zeke authored Sep 25, 2023
2 parents 62950ff + 214bc8f commit f33da7c
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,27 @@ const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
domains: [
"replicate.com",
"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 @@ -21,9 +37,9 @@ const nextConfig = {
source: "/deploy",
destination: "https://vercel.com/templates/next.js/scribble-diffusion",
permanent: false,
},
]
}
},
];
},
};

module.exports = nextConfig;

1 comment on commit f33da7c

@vercel
Copy link

@vercel vercel bot commented on f33da7c Sep 25, 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.