If I just use cloudinary optimized URL will it be enough?

Options
Salman
Salman Member Posts: 3
edited October 2023 in Developer APIs

I am using Nextjs to build an application. Also using Cloudinary as a CDN to deliver assets like images and video. If I just use the optimized URL Cloudinary provides from its dashboard will it be enough? Also, will the image be optimized by the Nextjs image component as I am not using the images from the public folder?


This is an example URL: https://res.cloudinary.com/dbt32ldpu/image/upload/f_auto,q_auto/v1/monster-burger-images/public/images/rp5ttemjfq4rc9um8tqm

Example Image component

     <Image
            className="relative z-20 mx-auto h-auto w-[80%] -translate-y-2  border-2 border-secondaryBodyTextColor object-cover object-top lg:mx-0 lg:h-[534px] lg:w-full"
            width={480}
            height={526}
            alt="A featured image for Our Story Section"
            src="https://res.cloudinary.com/dbt32ldpu/image/upload/f_auto,q_auto/v1/monster-burger-images/public/images/rp5ttemjfq4rc9um8tqm"
            sizes=""
          ></Image>
Tagged:

Best Answers

  • Tamara
    Tamara Member, Cloudinary Staff Posts: 100
    Answer ✓
    Options

    Hi there,

    Sorry for the late reply,

    Certainly, utilizing optimized URLs is a great approach for delivering assets in your Next.js application. You can absolutely keep your assets in the root folder; there's no issue with that

    Please let me know if you have any further questions.

    -Tamara

  • Tamara
    Tamara Member, Cloudinary Staff Posts: 100
    Answer ✓
    Options

    Right :)

Answers

  • Salman
    Salman Member Posts: 3
    Options

    Got it thanks. Just to be more sure, If I am using just URLs, I don't have to install packages like loash and cloudinary-react, right?

  • Salman
    Salman Member Posts: 3
    Options

    Thanks for your time and cooperation :)