1. Global configuration (See ICloudinaryConfigurations)

// Import the cloudinary class
import {Cloudinary} from "@cloudinary/url-gen/instance/Cloudinary";

// Create your instance
const cld = new Cloudinary({
    cloud: {
        cloudName: 'demo'
    },
    url: {
        secure: true // force https, set to false to force http
    }
});