cloudinary_angular
cloudinary_angular copied to clipboard
No documentation to change domain and subdomain
I see that CloudinaryConfiguration has a field for cdn_domain There is no clear way to set it as described in the documentation
Versions and Libraries (fill in the version numbers)
Angular Cloudinary SDK - 5.x
@chris480 if you have a cname on your account (available for our advance plan and higher) you can add it in the config by copy and paste from your dashboard.
It will look like: CLOUDINARY_URL=cloudinary://XXXX:XXXX@XXXX?cname=
@shirlymanor So something like this?
CloudinaryModule.forRoot({Cloudinary}, { cloud_name: 'your_cloud_name', cname: 'cdn.company.com' } as CloudinaryConfiguration),
Here is an example:
<CloudinaryContext cname="media.mysite.com" cloudName="mysite" privateCdn>
<CloudinaryImage publicId="myImage" />
</CloudinaryContext>
Isn't that the React setup?
Hi @chris480,
This should work:
CloudinaryModule.forRoot({Cloudinary}, { cloud_name: 'your_cloud_name', cname: 'cdn.company.com' } as CloudinaryConfiguration),
Thanks.