vite-env.d.ts
560 Bytes
/// <reference types="vite/client" />
interface ImportMetaEnv {
/** 非空则强制使用该 API 根地址;生产留空则走同域 `/api`(需 Nginx 反代) */
readonly VITE_API_BASE_URL?: string;
/** 与后端 .env 中 ADMIN_API_TOKEN 一致;留空时若后端也未配置 token 则可调管理接口 */
readonly VITE_ADMIN_API_TOKEN?: string;
/** 仅开发:Vite 将 /api、/uploads 代理到此地址,默认 http://127.0.0.1:9901 */
readonly VITE_DEV_PROXY_TARGET?: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}