svelte-cloudinary icon indicating copy to clipboard operation
svelte-cloudinary copied to clipboard

[Feature] Add config support to CldVideoPlayer, CldUploadWidget. Add global environment variables for CNAME

Open colbyfayock opened this issue 1 year ago • 1 comments

Feature Request

Is your feature request related to a problem? Please describe.

  • Config prop for CldUploadWidget
  • Config prop for CldVideoPlayer
  • Add support for global environment variables for secureDistribution and privateCdn

Describe the solution you'd like

Like the CldImage prop, the CldUploadWidget and CldVideoPlayer should accept a config prop allowing for individual instance configuration.

The Upload Widget would allow configuration of Cloud Name and API key where the Video Player would allow Cloud Name, Secure Distribution, and Private CDN

They can all be typed as ConfigOptions which comes from the URL Loader package (similar to CldImage)

To allow configuring these at a global scale, we can add 2 environment variables, also allowing these to be enviornment dependent:

PUBLICPREFIX_CLOUDINARY_SECURE_DISTRIBUTION="spacejelly.dev"
PUBLICPREFIX_CLOUDINARY_PRIVATE_CDN=true

Here are the relevant code changes in the Next.js repo: https://github.com/cloudinary-community/next-cloudinary/pull/466

colbyfayock avatar Apr 12 '24 01:04 colbyfayock

Like the CldImage prop, the CldUploadWidget and CldVideoPlayer should accept a config prop allowing for individual instance configuration.

This is done in #112

Add support for global environment variables for secureDistribution and privateCdn

Not done yet

ghostdevv avatar Aug 01 '24 04:08 ghostdevv

Will be released in https://github.com/cloudinary-community/svelte-cloudinary/pull/112

ghostdevv avatar Sep 02 '24 02:09 ghostdevv