Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support signed Cloudinary URLs for Astro? #659

Open
jlengstorf opened this issue Jun 5, 2024 · 0 comments
Open

Support signed Cloudinary URLs for Astro? #659

jlengstorf opened this issue Jun 5, 2024 · 0 comments

Comments

@jlengstorf
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant