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"