Error: Invalid src prop (https://res.cloudinary.com) on next/image
I get this error when I try to access images from cloudinary on my next js website
Unhandled Runtime Error
Error: Invalid src prop (https://res.cloudinary.com) on `next/image`, hostname "res.cloudinary.com" is not configured under images in your `next.config.js`
See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host
Admin
2023-05-17
Simple fix is to go to your next.config.js and add the cloudinary hostname as shown below
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
domains: ['res.cloudinary.com'],
},
}
module.exports = nextConfig
Similar Content
- Print first n multiples of a given number using python
- Django deployment on railway hosting error: gunicorn command not found
- Part 6: Building a User-Friendly Todo App with Flask - Step-by-Step Guide to Delete Todo and Category Items via DELETE Requests
- FastApi error assert default is, "Path parameters cannot have a default value"
- Part 5: Building a User-Friendly Todo App with Flask - Step-by-Step Guide to Update Todo and Category Items via PATCH Requests
Add Message
Click on the button below to add a new message to this thread
Tags
#python
Thread detail
Satus: Open
Messages: 1Started: 2023-05-17Categories
Privacy Policy
By using our website,
you agree that devmaesters can store cookies on your device and disclose information in accordance with our privacy policy.