feat: ✨ 整合Vite 环境变量和反向代理
This commit is contained in:
1 parent
737f6a3ee5
commit
272d643744
16 files changed
+5187
-6476
No files matched your search
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
// src/types/env.d.ts
|
||||
interface ImportMetaEnv {
|
||||
/**
|
||||
* 应用端口
|
||||
*/
|
||||
VITE_APP_PORT: number;
|
||||
/**
|
||||
* API 基础路径
|
||||
*/
|
||||
VITE_APP_BASE_API: string;
|
||||
/**
|
||||
* API 服务器的 URL
|
||||
*/
|
||||
VITE_APP_API_URL: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
Reference in new issue
Block a user