feat: ✨ 整合Vite 环境变量和反向代理
This commit is contained in:
19
src/types/env.d.ts
vendored
Normal file
19
src/types/env.d.ts
vendored
Normal file
@@ -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