Next.js Discord

Discord Forum

Help with Image Loading Issue in Production (Next.js)

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
Hello everyone,

I'm experiencing an issue in production where my images are no longer loading. Initially, it was only the .webp images that weren't working, but now all image extensions are affected. The requests return a 400 error with the message: "The requested resource isn't a valid image."

However, when I manually enter the image URL (/images/logo/logo.png), the image displays correctly

Could anyone please help me understand why this is happening and how I can fix it? I would really appreciate any advice or suggestions

Thank you so much in advance!

1 Reply

Northeast Congo LionOP
Logs :
 ⨯ The requested resource isn't a valid image for /images/caterer.png received null
 ⨯ The requested resource isn't a valid image for /images/hero.png received null
 ⨯ The requested resource isn't a valid image for /images/logo/logo.png received null
 ⨯ The requested resource isn't a valid image for /images/poke1.png received null
 ⨯ The requested resource isn't a valid image for /images/hero.png received null
 ⨯ The requested resource isn't a valid image for /images/logo/logo.png received null
 ⨯ The requested resource isn't a valid image for /images/icons/cactus-1.png received null
 ⨯ The requested resource isn't a valid image for /images/hero.png received null
 ⨯ The requested resource isn't a valid image for /images/icons/cactus-1.png received null