-
-
Notifications
You must be signed in to change notification settings - Fork 52
feat: update adapters supported features to account for new shape for Astro 5 #392
Conversation
🦋 Changeset detectedLatest commit: 96c75e5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 52 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 |
@@ -455,12 +455,7 @@ export default function netlifyIntegration( | |||
hybridOutput: 'stable', | |||
staticOutput: 'stable', | |||
serverOutput: 'stable', | |||
assets: { | |||
// keeping this as experimental at least until Netlify Image CDN is out of beta | |||
supportKind: 'experimental', |
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.
It makes no sense for Netlify to use this to reflect the Image CDN service being experimental. This leads to a wonky spooky messages for users (assets are not supported, what does that mean?)
I just updated it to match the new config, but a warning could be added separately from this (using the adapter config to check if the image cdn is 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.
LGTM! Do we need a changeset?
… Astro 5 (#392) * feat: update adapters supported features to account for new shape for Astro 5 * chore: changeset
Changes
In Astro 5, the section on assets has been removed from supportedAstroFeatures because it made no sense, you cannot not support "assets" as a concept, otherwise your adapter either can't have routes (it doesn't support having an endpoint), or does not support hosting assets in general (so you don't support any imports that results in a file, no JS, no CSS, no images etc)
In truth, adapters always support
astro:assets
the feature, what they don't support is the default image service that relies on Node API at runtime. As such, options we updated to reflect only that.Testing
N/A
Docs
N/A