diff --git a/vite.config.ts b/vite.config.ts index 13f47e6..0a6ef72 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,5 +1,9 @@ import { defineConfig } from 'vitest/config'; +// Minimal Node global declaration so tsc resolves `process.env` below without pulling in +// the full @types/node package (tsconfig pins `types` to vitest/globals only). +declare const process: { env: Record }; + export default defineConfig({ // Dev-only: proxy the CNC MJPEG camera so the page can load it via a // same-origin relative path (`/camera/...`), exactly as nginx does in