Skip to content

Commit 969405a

Browse files
committed
fix: allow http protocol in Next.js image remote patterns
External journal article thumbnails served over plain HTTP (e.g. ars.els-cdn.com) were rejected by the _next/image optimizer because remotePatterns only included https. Added an http pattern entry.
1 parent 4453f01 commit 969405a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

next.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ const nextConfig = {
163163
protocol: 'https',
164164
hostname: '**',
165165
},
166+
{
167+
protocol: 'http',
168+
hostname: '**',
169+
},
166170
],
167171
},
168172
compiler: {

0 commit comments

Comments
 (0)