# Conflicts: # .env.development # pnpm-lock.yaml # src/composables/index.ts # src/utils/request.ts # types/env.d.ts # vite.config.ts
32 lines
739 B
TypeScript
32 lines
739 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
/**
|
|
* Vite 环境变量类型定义
|
|
*/
|
|
interface ImportMetaEnv {
|
|
readonly VITE_APP_PORT: string;
|
|
readonly VITE_APP_BASE_API: string;
|
|
readonly VITE_APP_API_URL: string;
|
|
readonly VITE_APP_TITLE?: string;
|
|
readonly VITE_APP_TENANT_ENABLED?: string;
|
|
readonly VITE_MOCK_DEV_SERVER: boolean;
|
|
readonly VITE_BAIDU_MAP_AK?: string;
|
|
// 上游代码引用的环境变量
|
|
readonly VITE_API_BASE: string;
|
|
readonly VITE_TENANT_ENABLED?: string;
|
|
readonly VITE_AI_ENABLED?: string;
|
|
readonly VITE_MOCK_ENABLED?: string;
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|
|
|
|
declare const __APP_INFO__: {
|
|
pkg: {
|
|
name: string;
|
|
version: string;
|
|
};
|
|
buildTimestamp: number;
|
|
};
|