diff --git a/src/node/server.ts b/src/node/server.ts index 85c82d9847d0..ebf0aedf27be 100644 --- a/src/node/server.ts +++ b/src/node/server.ts @@ -5,7 +5,7 @@ import { createVitePressPlugin } from './plugin' export async function createServer( root: string = process.cwd(), - serverOptions: ServerOptions = {}, + serverOptions: ServerOptions & { base?: string } = {}, recreateServer?: () => Promise ) { const config = await resolveConfig(root)