Support signed Cloudinary URLs for Astro?
jlengstorf opened this issue · comments
Is your feature request related to a problem? Please describe.
I'm doing a thing with Cloudinary + Astro and using Unpic, and the only part I'm tripping up on is that they have some AI stuff (moderation, smart object cropping, etc.), but it requires a signed URL to avoid randos burning through account credits.
Describe the solution you'd like
It would be VERY cool if I could do something like this:
export default defineConfig({
image: {
service: imageService({
cdnOptions: {
cloudinary: {
cloud_name: import.meta.env.CLOUDINARY_CLOUD_NAME,
api_key: import.meta.env.CLOUDINARY_API_KEY,
api_secret: import.meta.env.CLOUDINARY_API_SECRET,
}
}
}),
},
});
Describe alternatives you've considered
Right now I'm bailing on Unpic and using the Cloudinary SDK + <img>
tags, which is fine, but it requires a "two ways of doing things" mindset when handling images in Astro, which is kind of a bummer.