diff options
Diffstat (limited to 'packages/integrations/vercel/src/static/adapter.ts')
-rw-r--r-- | packages/integrations/vercel/src/static/adapter.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/integrations/vercel/src/static/adapter.ts b/packages/integrations/vercel/src/static/adapter.ts index abc9483f5..454c42432 100644 --- a/packages/integrations/vercel/src/static/adapter.ts +++ b/packages/integrations/vercel/src/static/adapter.ts @@ -22,6 +22,10 @@ export default function vercelStatic(): AstroIntegration { 'astro:config:done': ({ setAdapter, config }) => { setAdapter(getAdapter()); _config = config; + + if(config.output === 'server') { + throw new Error(`${PACKAGE_NAME} should be used with output: 'static'`); + } }, 'astro:build:start': async () => { // Ensure to have `.vercel/output` empty. |