Next.js Discord

Discord Forum

Uploaded Images on cloudinary working on local giving errors on deployed version

Answered
Maltese posted this in #help-forum
Open in Discord
MalteseOP
My nextConfig as follows:

URL: https://maitryagency-v2.onrender.com/
const nextConfig = {
    images: {
        remotePatterns: [{
            protocol: "https",
            hostname: "res.cloudinary.com",
        }]
    }
}

module.exports = nextConfig;

SS of localhost attached in replies:

In console gettting 502 GET of following:
https://maitryagency-v2.onrender.com/_next/image?url=https%3A%2F%2Fres.cloudinary.com%2Fdprzhu3rl%2Fimage%2Fupload%2Fv1719150720%2Fshaving_foam_charcoal_a4af4cca1e.jpg&w=750&q=75
Answered by Maltese
I solved this using installing sharp!
View full answer

2 Replies

MalteseOP
MalteseOP
I solved this using installing sharp!
Answer