Skip to content

Commit

Permalink
feat: update adapters supported features to account for new shape for…
Browse files Browse the repository at this point in the history
… Astro 5 (#392)

* feat: update adapters supported features to account for new shape for Astro 5

* chore: changeset
  • Loading branch information
Princesseuh authored Sep 13, 2024
1 parent bb725b7 commit 3a49eb7
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 22 deletions.
8 changes: 8 additions & 0 deletions .changeset/sweet-geckos-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@astrojs/cloudflare': major
'@astrojs/netlify': major
'@astrojs/vercel': major
'@astrojs/node': major
---

Updates internal code for Astro 5 changes. No changes is required to your project, apart from using Astro 5
5 changes: 1 addition & 4 deletions packages/cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
hybridOutput: 'stable',
staticOutput: 'unsupported',
i18nDomains: 'experimental',
assets: {
supportKind: 'stable',
isSharpCompatible: false,
},
sharpImageService: 'limited',
envGetSecret: 'experimental',
},
});
Expand Down
7 changes: 1 addition & 6 deletions packages/netlify/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
// still using Netlify Image CDN instead
isSharpCompatible: true,
},
sharpImageService: 'stable',
envGetSecret: 'experimental',
},
});
Expand Down
5 changes: 1 addition & 4 deletions packages/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ export function getAdapter(options: Options): AstroAdapter {
hybridOutput: 'stable',
staticOutput: 'stable',
serverOutput: 'stable',
assets: {
supportKind: 'stable',
isSharpCompatible: true,
},
sharpImageService: 'stable',
i18nDomains: 'experimental',
envGetSecret: 'stable',
},
Expand Down
5 changes: 1 addition & 4 deletions packages/vercel/src/serverless/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ function getAdapter({
hybridOutput: 'stable',
staticOutput: 'stable',
serverOutput: 'stable',
assets: {
supportKind: 'stable',
isSharpCompatible: true,
},
sharpImageService: 'stable',
i18nDomains: 'experimental',
envGetSecret: 'stable',
},
Expand Down
5 changes: 1 addition & 4 deletions packages/vercel/src/static/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ function getAdapter(): AstroAdapter {
return {
name: PACKAGE_NAME,
supportedAstroFeatures: {
assets: {
supportKind: 'stable',
isSharpCompatible: true,
},
sharpImageService: 'stable',
staticOutput: 'stable',
serverOutput: 'unsupported',
hybridOutput: 'unsupported',
Expand Down

0 comments on commit 3a49eb7

Please sign in to comment.