Skip to content

Commit

Permalink
images.domains is deprecated, used remotePatterns instead of it in th…
Browse files Browse the repository at this point in the history
…e next.config file
  • Loading branch information
mujibulhaquetanim committed Feb 10, 2025
1 parent 0d06b6a commit 609c7d8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions authjs/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ["images.pexels.com"],
}
//domains is deprecated, use remotePatterns
remotePatterns: [
{
protocol: 'https',
hostname: 'images.pexels.com',
},
],
},
};

export default nextConfig;

0 comments on commit 609c7d8

Please sign in to comment.