vite-env.d.ts
717 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
/// <reference types="vite/client" />
interface ImportMetaEnv {
// 标题
VITE_GLOB_APP_TITLE: string;
// 公共路径
VITE_GLOB_PUBLIC_PATH: string
// 代理地址
VITE_GLOB_PROXY: [string, string][]
// 内容安全协议
VITE_GLOB_CONTENT_SECURITY_POLICY: boolean
VITE_GLOB_APP_SHORT_NAME: string
// 流媒体播放协议
VITE_GLOB_STREAM_MEDIA_CONTENT_SECURITY_PROTOCOL: boolean
}
declare type GlobConfig = {
}
declare interface ViteEnv extends GlobEnvConfig {
// 端口
VITE_DEV_PORT: string;
// 开发地址
VITE_DEV_PATH: string
// 生产地址
VITE_PRO_PATH: string
}
interface ImportMetaEnv extends ViteEnv {
MODE: 'development' | 'production' | 'independence'
}