Skip to content

Commit

Permalink
Merge pull request replicate#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;

0 comments on commit f33da7c

Please sign in to comment.