import type { ServerOptions } from 'vite' export const WATCH_IGNORED = [ '**/desktop/**', '**/packages/cli/**', '**/packages/mcp/**', '**/packages/docs/**', '**/tests/**', '**/.worktrees/**', '**/.github/**', '**/.pi/**' ] export function createDevServerOptions(host: string | undefined): ServerOptions { return { port: 1420, strictPort: true, host: host || false, hmr: host ? { protocol: 'ws', host, port: 1421 } : undefined, watch: { ignored: WATCH_IGNORED } } }