Setup

Installation

Add cloudinary-build-url dependency to your project:

yarn add cloudinary-build-url
npm install cloudinary-build-url

TypeScript Support

cloudinary-build-url supports TypeScript. To use the same types defined in the library, install @cld-apis/types as your devDependencies.

yarn add -D @cld-apis/types
npm i -D @cld-apis/types

Configure

You can provide a global configuration for Cloudinary builder by using setConfig() method.

import { setConfig } from 'cloudinary-build-url'

setConfig({
  cloudName: 'your-cloud-name',
})

See Options section for all available options to initialize Cloudinary builder.

And that's it 🎉!

Now you can start building optimized delivery urls for your images and videos with Cloudinary.