环境变量增加提示

dev
LiuJiaNan 2024-03-07 09:59:58 +08:00
parent 327a999598
commit 0b7f1f65df
2 changed files with 15 additions and 0 deletions

View File

@ -2,3 +2,4 @@ public
dist
package.json
!.prettierrc.cjs
src/vite-env.d.ts

14
src/vite-env.d.ts vendored Normal file
View File

@ -0,0 +1,14 @@
/// <reference types="vite/client" />
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
}