lolosia-web/typings/env.d.ts

22 lines
574 B
TypeScript
Raw Normal View History

2023-02-02 16:07:38 +08:00
declare global {
interface ImportMetaEnv {
2023-08-02 09:43:03 +08:00
readonly VITE_APP_BASE_MODE: 'local' | 'url' | 'port'
2023-02-02 16:07:38 +08:00
readonly VITE_APP_BASE_URL: string
2023-08-02 09:43:03 +08:00
readonly VITE_APP_BASE_PORT: number
readonly VITE_APP_ENV: 'prod' | 'test' | 'dev'
2024-04-26 22:38:15 +08:00
readonly VITE_BUILD_TIMESTAMP: string
2024-04-26 22:33:09 +08:00
readonly VITE_BUILD_DISPLAY_NAME: string
readonly VITE_GIT_COMMIT: string
2024-04-26 22:55:57 +08:00
readonly PROJECT_VERSION: string
2023-02-02 16:07:38 +08:00
// 更多环境变量...
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
2024-04-25 08:39:55 +08:00
interface Window {
readonly NGINX_BASE_URL: string | undefined
}
2023-02-02 16:07:38 +08:00
}
export {}