nuxt / image

Plug-and-play image optimization for Nuxt applications.

Home Page:https://image.nuxt.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Absolute Cloudinary URLs do not work

markbrouch opened this issue · comments

There is currently no way to use an absolute URL for the Cloudinary provider. One workaround may be to parse the absolute URL to return the path, but this is not sufficient when we do not know the domain at build time (such as the case for custom Cloudinary domains provided by a backend API request at runtime).

A good solution will allow an absolute Cloudinary URL to be passed to <NuxtImg> in addition to the currently supported relative URLs.

Example:

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