ICloudinaryAssetConfigurations

config

Description

Defines the configuration needed to create URLs for cloudinary assets

Properties
Name Type Description
cloud ICloudConfig
url IURLConfig
Examples

			import Cloudinary from '@cloudinary/url-gen';
			// The Cloudinary Instance accepts an ICloudinaryAssetConfigurations as an argument
			// ICloudinaryAssetConfigurations is built from two parts, the `cloud` and the `url` keys.
			const cld = new Cloudinary({
			 // the cloudConfig
			 cloud: {
			      cloudName: 'demo'
			  },
			  // the urlConfig
			  url: {
			      cname: 'www.example.com',
			      forceVersion: true
			  }
			});