Skip to content

Commit e7bed15

Browse files
authored
feat: support updated remotePatterns configuration (#1607)
* feat: support updated remotePatterns configuration * test: fix incorrect assertion * fix: forgot to export the type * fix: logic error on the check for getting remote patterns
1 parent b93e60a commit e7bed15

File tree

6 files changed

+257
-165
lines changed

6 files changed

+257
-165
lines changed

demos/canary/next.config.js

+7-11
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ const nextConfig = {
88
},
99
images: {
1010
formats: ['image/avif', 'image/webp'],
11-
},
12-
experimental: {
13-
images: {
14-
remotePatterns: [
15-
{
16-
protocol: 'https',
17-
hostname: '*.githubusercontent.com',
18-
},
19-
],
20-
},
21-
},
11+
remotePatterns: [
12+
{
13+
protocol: 'https',
14+
hostname: '*.githubusercontent.com',
15+
},
16+
],
17+
}
2218
}
2319

2420
module.exports = nextConfig

0 commit comments

Comments
 (0)