fix(@astrojs/vercel): include astro feature map and adapter features to the static adapter (#8318)
This commit is contained in:
parent
61ac0eb3d8
commit
c58472756e
2 changed files with 22 additions and 1 deletions
5
.changeset/beige-walls-grow.md
Normal file
5
.changeset/beige-walls-grow.md
Normal 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.
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue