mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
Throw error when trying to use the vercel static adapter in server mode (#5241)
This commit is contained in:
parent
3d799e221e
commit
35cdb5634d
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue