From 81a2f2e90b1d6ce57d4f778256f975f9f5736ce1 Mon Sep 17 00:00:00 2001 From: Carlos Date: Mon, 16 Feb 2026 19:55:46 +0100 Subject: [PATCH] correct compilation errors --- src/vite-env.d.ts | 10 ++++++++++ tsconfig.json | 3 +-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 11f02fe..c75dab3 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -1 +1,11 @@ /// + +interface ImportMetaEnv { + readonly VITE_API_KEY: string + readonly VITE_SENTRY_DSN: string + readonly VITE_API_HOST?: string +} + +interface ImportMeta { + readonly env: ImportMetaEnv +} diff --git a/tsconfig.json b/tsconfig.json index 92f88e0..33cdf0f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,8 +18,7 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react-jsx", - "types": ["vite/client"] + "jsx": "react-jsx" }, "include": [ "src"