summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <my.burning@gmail.com> 2023-08-31 17:01:43 +0100
committerGravatar GitHub <noreply@github.com> 2023-08-31 17:01:43 +0100
commitc58472756ea30d2496592b2bde390cf858c1876f (patch)
treefff57b9f3e1fe88e5217119763bc57951f45e9fe
parent61ac0eb3d8c650dfeafdf76824f52ac495356a60 (diff)
downloadastro-c58472756ea30d2496592b2bde390cf858c1876f.tar.gz
astro-c58472756ea30d2496592b2bde390cf858c1876f.tar.zst
astro-c58472756ea30d2496592b2bde390cf858c1876f.zip
fix(@astrojs/vercel): include astro feature map and adapter features to the static adapter (#8318)
-rw-r--r--.changeset/beige-walls-grow.md5
-rw-r--r--packages/integrations/vercel/src/static/adapter.ts18
2 files changed, 22 insertions, 1 deletions
diff --git a/.changeset/beige-walls-grow.md b/.changeset/beige-walls-grow.md
new file mode 100644
index 000000000..991ccba90
--- /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 8b9845898..0a63dc333 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 {