Error library

Next.js next/image un-configured host

next/image only loads remote images whose URL matches images.remotePatterns in next.config.js. Add the exact protocol, hostname, port and pathname of your image source (for example your Supabase Storage domain).

Get this exact error fixed — $49 Quick FixFixed within scope, or we keep working until it is · Read-only access Not sure it's this error? $149 diagnosis

Cause: The image src hostname (or protocol/port/path) isn't matched by images.remotePatterns.

How to fix it

  1. Copy the image URL from the error.
  2. Add a matching entry to images.remotePatterns (protocol, hostname, port, pathname).
  3. Remember example.com and assets.example.com are different hostnames.
  4. Restart the dev server / redeploy after changing config.

Example

Illustrative example, not from a customer project.

  images: {
+   remotePatterns: [new URL('https://xyz.supabase.co/storage/v1/object/public/**')],
  },

FAQ

Can I allow every hostname?

It's possible with wildcards, but Next.js recommends being specific to prevent abuse of your image optimizer.

What about images.domains?

That's the older config; current docs use remotePatterns.

QUICK FIX · $49 · THIS ERROR ONLY

Get this exact error fixed — $49 Quick FixFixed within scope, or we keep working until it is · Read-only access Not sure it's this error? $149 diagnosis

One error, one root cause, fixed in your app. If it turns out bigger, we tell you before doing more, and your $49 is credited toward the fix, diagnosis or Launch Path if you book within 14 days. Fixing three? The 3-Error Pack is $119.

Bigger job: Getting the whole app live? Launch Path, $1,195 flat.

Built with Lovable, Bolt, Replit, Cursor or v0? See rescue by platform and the security checklist.

Check it yourself first, free

$49Fix this error