From e06541984ff333938cb9b114a3e8926083c04883 Mon Sep 17 00:00:00 2001 From: ZhaoJiSen <97007455+ZhaoJiSen@users.noreply.github.com> Date: Fri, 20 Dec 2024 15:32:58 +0800 Subject: [PATCH] Add ImportMeta type definition (#7481) --- frontend/vite-env.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/vite-env.d.ts b/frontend/vite-env.d.ts index 8cee151713c4..e6a8eb0cf755 100644 --- a/frontend/vite-env.d.ts +++ b/frontend/vite-env.d.ts @@ -1,2 +1,11 @@ /// /// + +interface ImportMetaEnv { + readonly VITE_API_URL: string +} + + interface ImportMeta { + readonly env: ImportMetaEnv +} + \ No newline at end of file