fix(@astrojs/vercel): include astro feature map and adapter features to the static adapter (#8318)

This commit is contained in:
Emanuele Stoppa 2023-08-31 17:01:43 +01:00 committed by GitHub
parent 61ac0eb3d8
commit c58472756e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View file

@ -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.

View file

@ -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 {