From 0b7f1f65df2352d82ca8cb8c4da40324c1cbdae0 Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Thu, 7 Mar 2024 09:59:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 1 + src/vite-env.d.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/vite-env.d.ts diff --git a/.eslintignore b/.eslintignore index b06f3f0..32b17dc 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,3 +2,4 @@ public dist package.json !.prettierrc.cjs +src/vite-env.d.ts diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 0000000..ef6964f --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1,14 @@ +/// + +interface ImportMetaEnv { + readonly VITE_BASE_URL: string + readonly VITE_PROXY: string + readonly VITE_FILE_URL: string + readonly VITE_TEMPLATE_URL: string + readonly VITE_ON_LINE_WEB_SOCKET_URL: string + readonly VITE_LEARNING_WEB_SOCKET_URL: string +} + +interface ImportMeta { + readonly env: ImportMetaEnv +}