import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight'; export default defineConfig({ site: 'https://mcnanovna.l.zmesh.systems', telemetry: false, devToolbar: { enabled: false }, integrations: [ starlight({ title: 'mcnanovna', description: 'MCP servers for NanoVNA control and antenna positioner automation', logo: { dark: './src/assets/logo-dark.svg', light: './src/assets/logo-light.svg', replacesTitle: false, }, social: { github: 'https://git.supported.systems/rf/mcnanovna', }, sidebar: [ { label: 'Getting Started', items: [ { label: 'Introduction', slug: '' }, { label: 'Quick Start', slug: 'getting-started/quickstart' }, { label: 'Installation', slug: 'getting-started/installation' }, ], }, { label: 'mcnanovna', items: [ { label: 'Overview', slug: 'mcnanovna/overview' }, { label: 'Tool Reference', slug: 'mcnanovna/tools' }, { label: 'Prompts', slug: 'mcnanovna/prompts' }, { label: 'Web UI', slug: 'mcnanovna/webui' }, ], }, { label: 'mcpositioner', items: [ { label: 'Overview', slug: 'mcpositioner/overview' }, { label: 'Tool Reference', slug: 'mcpositioner/tools' }, { label: 'Prompts', slug: 'mcpositioner/prompts' }, ], }, { label: 'Hardware', items: [ { label: 'Positioner Build', slug: 'hardware/positioner-build' }, { label: 'Wiring Diagram', slug: 'hardware/wiring' }, { label: 'Firmware', slug: 'hardware/firmware' }, ], }, { label: 'Tutorials', items: [ { label: '3D Pattern Measurement', slug: 'tutorials/pattern-measurement' }, { label: 'VNA Calibration', slug: 'tutorials/calibration' }, { label: 'Antenna Analysis', slug: 'tutorials/antenna-analysis' }, ], }, { label: 'Reference', items: [ { label: 'HTTP API (ESP32)', slug: 'reference/http-api' }, { label: 'Pattern Formats', slug: 'reference/pattern-formats' }, { label: 'Ham Bands', slug: 'reference/ham-bands' }, ], }, ], customCss: ['./src/styles/custom.css'], }), ], vite: { server: { host: '0.0.0.0', // Only configure HMR for reverse proxy when explicitly set ...(process.env.VITE_HMR_HOST && { hmr: { host: process.env.VITE_HMR_HOST, protocol: 'wss', clientPort: 443, }, }), }, }, });