Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 3a49eb7

Browse files
authored
feat: update adapters supported features to account for new shape for Astro 5 (#392)
* feat: update adapters supported features to account for new shape for Astro 5 * chore: changeset
1 parent bb725b7 commit 3a49eb7

File tree

6 files changed

+13
-22
lines changed

6 files changed

+13
-22
lines changed

.changeset/sweet-geckos-double.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@astrojs/cloudflare': major
3+
'@astrojs/netlify': major
4+
'@astrojs/vercel': major
5+
'@astrojs/node': major
6+
---
7+
8+
Updates internal code for Astro 5 changes. No changes is required to your project, apart from using Astro 5

packages/cloudflare/src/index.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
163163
hybridOutput: 'stable',
164164
staticOutput: 'unsupported',
165165
i18nDomains: 'experimental',
166-
assets: {
167-
supportKind: 'stable',
168-
isSharpCompatible: false,
169-
},
166+
sharpImageService: 'limited',
170167
envGetSecret: 'experimental',
171168
},
172169
});

packages/netlify/src/index.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -455,12 +455,7 @@ export default function netlifyIntegration(
455455
hybridOutput: 'stable',
456456
staticOutput: 'stable',
457457
serverOutput: 'stable',
458-
assets: {
459-
// keeping this as experimental at least until Netlify Image CDN is out of beta
460-
supportKind: 'experimental',
461-
// still using Netlify Image CDN instead
462-
isSharpCompatible: true,
463-
},
458+
sharpImageService: 'stable',
464459
envGetSecret: 'experimental',
465460
},
466461
});

packages/node/src/index.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ export function getAdapter(options: Options): AstroAdapter {
1717
hybridOutput: 'stable',
1818
staticOutput: 'stable',
1919
serverOutput: 'stable',
20-
assets: {
21-
supportKind: 'stable',
22-
isSharpCompatible: true,
23-
},
20+
sharpImageService: 'stable',
2421
i18nDomains: 'experimental',
2522
envGetSecret: 'stable',
2623
},

packages/vercel/src/serverless/adapter.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,7 @@ function getAdapter({
9090
hybridOutput: 'stable',
9191
staticOutput: 'stable',
9292
serverOutput: 'stable',
93-
assets: {
94-
supportKind: 'stable',
95-
isSharpCompatible: true,
96-
},
93+
sharpImageService: 'stable',
9794
i18nDomains: 'experimental',
9895
envGetSecret: 'stable',
9996
},

packages/vercel/src/static/adapter.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ function getAdapter(): AstroAdapter {
2323
return {
2424
name: PACKAGE_NAME,
2525
supportedAstroFeatures: {
26-
assets: {
27-
supportKind: 'stable',
28-
isSharpCompatible: true,
29-
},
26+
sharpImageService: 'stable',
3027
staticOutput: 'stable',
3128
serverOutput: 'unsupported',
3229
hybridOutput: 'unsupported',

0 commit comments

Comments
 (0)