feat: 整合Vite 环境变量和反向代理

This commit is contained in:
ray
2024-09-23 18:23:10 +08:00
parent 737f6a3ee5
commit 272d643744
16 changed files with 5187 additions and 6476 deletions

19
src/types/env.d.ts vendored Normal file
View 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;
}