-
-
Notifications
You must be signed in to change notification settings - Fork 52
[netlify] allow opting out of Image CDN #120
Conversation
🦋 Changeset detectedLatest commit: 945ee59 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
packages/netlify/src/index.ts
Outdated
* | ||
* If disabled, Astro's built-in image optimization is run at build-time instead. | ||
* | ||
* @default enabled |
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.
* @default enabled | |
* @default {true} |
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.
We're also using enabled/disabled wording for the comment above. Personally, I prefer the english wording here as opposed to code syntax - but it's a preference thing. Is there a guideline on this in the Astro docs? cc @sarah11918
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 is JSDoc, which wants a value: https://jsdoc.app/tags-default
In this case, enabled
isn't a valid value for this property
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.
Fair point - gonna change this here and in the other comment.
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.
done in 945ee59
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.
Thank you for addressing this so quickly!
Changes
As per #118, this adds an opt-out option for Image CDN.
Testing
Added new unit tests.
Docs
This is a new config option. We should probably mention it in the Astro integration docs.