Installing URL Loader

Getting Started

Installation

npm install @cloudinary-util/url-loader

Import the Dependency

import { constructCloudinaryUrl } from '@cloudinary-util/url-loader';

Create a Cloudinary URL

const url = constructCloudinaryUrl({
  options: {
    src: 'my-public-id',
    width: 800,
    height: 600
  },
  config: {
    cloud: {
      cloudName: 'my-cloud'
    }
  }
});

Don't have a Cloudinary account? Sign up for free on cloudinary.com!