Skip to content

Commit

Permalink
path(@astrojs/vercel): include astro feature map and adapter features…
Browse files Browse the repository at this point in the history
… to the static adapter
  • Loading branch information
ematipico committed Aug 31, 2023
1 parent 1efd51f commit c67220b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/beige-walls-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/vercel': patch
---

Add astro feature map and adapter features to the static adapter. This will remove the warning emitted by Astro.
18 changes: 17 additions & 1 deletion packages/integrations/vercel/src/static/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,23 @@ import { getRedirects } from '../lib/redirects.js';
const PACKAGE_NAME = '@astrojs/vercel/static';

function getAdapter(): AstroAdapter {
return { name: PACKAGE_NAME };
return {
name: PACKAGE_NAME,
supportedAstroFeatures: {
assets: {
supportKind: 'stable',
isSquooshCompatible: true,
isSharpCompatible: true,
},
staticOutput: 'stable',
serverOutput: 'unsupported',
hybridOutput: 'unsupported',
},
adapterFeatures: {
edgeMiddleware: false,
functionPerRoute: false,
},
};
}

export interface VercelStaticConfig {
Expand Down

0 comments on commit c67220b

Please sign in to comment.