nuxt / image

Plug-and-play image optimization for Nuxt applications.
https://image.nuxt.com
MIT License
1.28k stars 253 forks source link

feat: support cloudinary urls as src #1361

Open markbrouch opened 1 month ago

markbrouch commented 1 month ago

Resolves https://github.com/nuxt/image/issues/1376

Adds the ability for a full cloudinary url to be used as src instead of relying on baseURL to construct the image url.

For example:

<NuxtImg src="https://res.cloudinary.com/example/image/upload/example.jpg" />

should use https://res.cloudinary.com/example/image/upload as the baseURL, regardless of what baseURL is configured as.

This is needed for apps that receive a full cloudinary url from the backend which may be responsible for determining the specific cloud and base url.

See discussion in Discord thread: https://discord.com/channels/473401852243869706/1238298456540577802