cloudinary-community / next-cloudinary

⚡️ High-performance image delivery and uploading at scale in Next.js powered by Cloudinary.
https://next.cloudinary.dev
MIT License
237 stars 64 forks source link

Secure Distribution / Cname Environment Variables, CldVideoPlayer Config #466

Closed colbyfayock closed 3 months ago

colbyfayock commented 3 months ago

Description

Adds the ability to configure an environment variable for global cname/secure distribution configuration

NEXT_PUBLIC_CLOUDINARY_SECURE_DISTRIBUTION="spacejelly.dev"
NEXT_PUBLIC_CLOUDINARY_PRIVATE_CDN=true

Currently opting not to provide an option for the cname parameter as that's considered legacy and only used for insecure contexts, which is not recommended

See: https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters

Adds config prop to CldVideoPlayer and CldUploadWidget for individual configuration. This also inherits the global configurations as relevant.

Issue Ticket Number

Fixes #465 Fixes #464

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
next-cloudinary ✅ Ready (Inspect) Visit Preview Apr 11, 2024 10:11pm
github-actions[bot] commented 3 months ago

:tada: This PR is included in version 6.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: