diff --git a/src/node/server.ts b/src/node/server.ts index 85c82d98..ebf0aedf 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)