fix: declare process global so tsc build gate passes (pre-existing)

This commit is contained in:
sjat 2026-06-11 09:37:44 +02:00
parent 83f4c3eb7e
commit 885f94098c

View file

@ -1,5 +1,9 @@
import { defineConfig } from 'vitest/config'; 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<string, string | undefined> };
export default defineConfig({ export default defineConfig({
// Dev-only: proxy the CNC MJPEG camera so the page can load it via a // 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 // same-origin relative path (`/camera/...`), exactly as nginx does in