From 885f94098c04c208dae81bdf8588fa0e429afc91 Mon Sep 17 00:00:00 2001 From: sjat Date: Thu, 11 Jun 2026 09:37:44 +0200 Subject: [PATCH] fix: declare process global so tsc build gate passes (pre-existing) --- vite.config.ts | 4 ++++ 1 file changed, 4 insertions(+) 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