Skip to content

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

Closed

Description

@colbyfayock

Feature Request

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

  • Config prop for CldUploadWidget
  • Config prop for CldVideoPlayer (i think this was done, but just confirming)
  • 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: cloudinary-community/next-cloudinary#466

Activity

  1. added
    enhancement
    on Apr 12, 2024
  2. colbyfayock commented on Apr 12, 2024

    @colbyfayock
    CollaboratorAuthor

    Unsure if environment variables make as much sense given this work: #195

    but the argument is people may have different configurations for their CNAME based on dev/prod/etc

  3. Baroshem commented on Apr 22, 2024

    @Baroshem
    Collaborator

    Adding it to the scope for version 3.0.0 :)

  4. added this to the 3.0.0 milestone on Apr 22, 2024
  5. added a commit that references this issue on May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions