vite-env.d.ts
549 Bytes
/// <reference types="vite/client" />
interface ImportMetaEnv {
/** 留空则使用相对路径(配合 Vite 代理);生产可写 https://your-api.com */
readonly VITE_API_BASE_URL?: string;
/** 与后端 .env 中 ADMIN_API_TOKEN 一致;留空时若后端也未配置 token 则可调管理接口 */
readonly VITE_ADMIN_API_TOKEN?: string;
/** 设为 true 时,管理页保存后会 POST 到后端(需后端可访问) */
readonly VITE_SYNC_ADMIN_TO_SERVER?: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}