lolosia-web/typings/env.d.ts

14 lines
339 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'
2023-02-02 16:07:38 +08:00
// 更多环境变量...
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
}
export {}