Skip to content

Commit 3f8bf14

Browse files
committed
🐛 Deprecated images.domains (Next.js 14)
1 parent b878985 commit 3f8bf14

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

next.config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
images: {
4-
domains: ['uploadthing.com', 'lh3.googleusercontent.com'],
4+
remotePatterns: [
5+
{
6+
protocol: 'https',
7+
hostname: 'uploadthing.com',
8+
pathname: '**',
9+
},
10+
{
11+
protocol: 'https',
12+
hostname: 'lh3.googleusercontent.com',
13+
pathname: '**',
14+
},
15+
],
516
},
617
};
718

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-nextjs-boilerplate",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

0 commit comments

Comments
 (0)