-
Notifications
You must be signed in to change notification settings - Fork 143
Closed
Labels
Description
Feature Request
Is your feature request related to a problem? Please describe.
The problem I have is when creating docker images, I will need the Cloudinary cloud name at build time. But I want to be able to let users use their own cloudinary accounts if needed.
Describe the solution you'd like
I'm specifically talking about the CldUploadWidgetwhere uploadPreset is passed as a prop, I also want to be able to pass the cloud name
export interface CldUploadWidgetProps {
...
uploadPreset?: string;
cloudName?: string; // Additional line
}
and in the component,
const uploadOptions = {
cloudName: cloudName || process.env.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME, // Additional operand
uploadPreset: uploadPreset || process.env.NEXT_PUBLIC_CLOUDINARY_UPLOAD_PRESET,
apiKey: process.env.NEXT_PUBLIC_CLOUDINARY_API_KEY,
...options,
};
Describe alternatives you've considered
I cannot find alternatives, if there is already an existing solution for this, please let me know!
Additional context
This way, users (I meant users using my application) can input their own cloud names and use their cloudinary data somewhere else they want.