diff --git a/.changeset/beige-walls-grow.md b/.changeset/beige-walls-grow.md new file mode 100644 index 0000000000..991ccba908 --- /dev/null +++ b/.changeset/beige-walls-grow.md @@ -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. diff --git a/packages/integrations/vercel/src/static/adapter.ts b/packages/integrations/vercel/src/static/adapter.ts index 8b9845898b..0a63dc3336 100644 --- a/packages/integrations/vercel/src/static/adapter.ts +++ b/packages/integrations/vercel/src/static/adapter.ts @@ -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 {