From 97584e3942e94476b9403da9b1369176cf31b10d Mon Sep 17 00:00:00 2001 From: nessi Date: Thu, 9 Jul 2026 12:15:33 +0200 Subject: [PATCH] feat: add Vite environment type definitions for API base URL configuration Add TypeScript declarations for Vite environment variables including VITE_API_BASE_URL to enable type-safe access to import.meta.env in the frontend application --- frontend/src/vite-env.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 frontend/src/vite-env.d.ts diff --git a/frontend/src/vite-env.d.ts b/frontend/src/vite-env.d.ts new file mode 100644 index 0000000..9c5fb47 --- /dev/null +++ b/frontend/src/vite-env.d.ts @@ -0,0 +1,10 @@ +/// + +interface ImportMetaEnv { + readonly VITE_API_BASE_URL?: string; +} + +interface ImportMeta { + readonly env: ImportMetaEnv; +} +