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:33:09 +08:00
|
|
|
readonly VITE_TAG_TIMESTAMP: string
|
|
|
|
readonly VITE_BUILD_DISPLAY_NAME: string
|
|
|
|
readonly VITE_GIT_COMMIT: 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 {}
|