lolosia-web/typings/env.d.ts
2024-04-26 22:33:09 +08:00

21 lines
535 B
TypeScript

declare global {
interface ImportMetaEnv {
readonly VITE_APP_BASE_MODE: 'local' | 'url' | 'port'
readonly VITE_APP_BASE_URL: string
readonly VITE_APP_BASE_PORT: number
readonly VITE_APP_ENV: 'prod' | 'test' | 'dev'
readonly VITE_TAG_TIMESTAMP: string
readonly VITE_BUILD_DISPLAY_NAME: string
readonly VITE_GIT_COMMIT: string
// 更多环境变量...
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
interface Window {
readonly NGINX_BASE_URL: string | undefined
}
}
export {}