env.d.ts 324 B

12345678910111213141516
  1. /// <reference types="vite/client" />
  2. interface ImportMetaEnv {
  3. readonly VITE_API_URL: string;
  4. // 可以添加更多环境变量
  5. }
  6. interface ImportMeta {
  7. readonly env: ImportMetaEnv;
  8. }
  9. interface ViteEnv extends ImportMetaEnv {
  10. readonly VITE_APP_NAME: string;
  11. // 可以添加更多环境变量
  12. }