- /// <reference types="vite/client" />
-
- interface ImportMetaEnv {
- readonly VITE_API_URL: string;
- // 可以添加更多环境变量
- }
-
- interface ImportMeta {
- readonly env: ImportMetaEnv;
- }
- interface ViteEnv extends ImportMetaEnv {
- readonly VITE_APP_NAME: string;
- // 可以添加更多环境变量
- }
|