openpencil/vite/server.ts
Danila Poyarkov c3f5189f8f style: tighten import grouping
- Configure oxfmt custom import groups for workspace, app, package, and test aliases
- Keep type imports grouped with their matching source category instead of one global tail group
- Expand the format script to cover formatter config, Vite files, and scripts
2026-05-06 02:22:08 +03:00

31 lines
567 B
TypeScript

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
}
}
}