fix: 环境变量类型统一为字符串并移除未使用的 VITE_APP_NAME

This commit is contained in:
Ray.Hao committed 2026-08-12 14:57:11 +08:00
1 parent 1965641229
commit b0c1dd97ed
1 file changed
+2 -3
+2 -3
View File
@@ -4,13 +4,12 @@
* Vite 环境变量类型定义 * Vite 环境变量类型定义
*/ */
interface ImportMetaEnv { interface ImportMetaEnv {
readonly VITE_APP_PORT: number; readonly VITE_APP_PORT: string;
readonly VITE_APP_NAME: string;
readonly VITE_APP_BASE_API: string; readonly VITE_APP_BASE_API: string;
readonly VITE_APP_API_URL: string; readonly VITE_APP_API_URL: string;
readonly VITE_APP_TITLE?: string; readonly VITE_APP_TITLE?: string;
readonly VITE_APP_TENANT_ENABLED?: string; readonly VITE_APP_TENANT_ENABLED?: string;
readonly VITE_MOCK_DEV_SERVER: boolean; readonly VITE_MOCK_DEV_SERVER: string;
} }
interface ImportMeta { interface ImportMeta {