env.d.ts 523 Bytes
Newer Older
qd01's avatar
qd01 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
interface ImportMetaEnv {
  /** 环境变量 */
  VITE_APP_ENV: 'production' | 'development' | 'test'

  /** 开发服务端口号 */
  VITE_DEV_PORT: number

  /** 开发代理路径 */
  VITE_DEV_PROXY_PATH?: string

  /** 开发代理地址 */
  VITE_DEV_PROXY_TARGET?: string

  /** 调试工具 eruda */
  VITE_DEV_TOOLS: 'true' | 'false'

  /** 打包生成的文件目录 */
  VITE_BUILD_OUTPUT_DIR: string

  /** 接口地址 */
  VITE_API_BASE_URL: string
}

interface ImportMeta {
  readonly env: ImportMetaEnv
}