-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
docs: Updates Cloudinary Astro Integration Guides #9550
base: main
Are you sure you want to change the base?
Conversation
…o, updates Images section referring to the Cloudinary Node.js SDK to also include the Astro SDK
✅ Deploy Preview for astro-docs-2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -497,7 +497,7 @@ export default defineConfig({ | |||
|
|||
Image CDNs work with all Astro image options. Use an image's full URL as the `src` attribute in the `<Image />` component, an `<img>` tag, or in Markdown notation. For image optimization with remote images, also [configure your authorized domains or URL patterns](#authorizing-remote-images). | |||
|
|||
Alternatively, if the CDN provides a Node.js SDK, you can use that in your project. For example, [Cloudinary’s SDK](https://cloudinary.com/documentation/node_integration) can generate an `<img>` tag with the appropriate `src` for you. | |||
Alternatively, the CDN may provide it's own SDKs to more easily integrate in an Astro project. For example, Cloudinary supports an [Astro SDK](https://astro.cloudinary.dev/) which allows you to easily drop in images with their CldImage component or a [Node.js SDK](https://cloudinary.com/documentation/node_integration) that can generate URLs to use with an `<img>` tag in a Node.js environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this feels a little Cloudinary heavy relative to the section that it's being described in, but the original intent was Node.js focused and I wanted to offer the Astro SDK as an alternative option now that it's available
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
Description (required)
This makes two changes regarding Cloudinary in the Astro docs.
Updates the primary Cloudinary integration page to walk through how to use Cloudinary with the newer Astro Cloudinary SDK as well as providing additional options depending on the person's needs.
Updates a section in the Images documentation with regards to generating Cloudinary URLs with the Node.js SDK. It offers the Astro SDK as an alternative solution.
Related issues & labels (optional)