2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00
Files
panel/web/types/env.d.ts
2024-11-26 02:27:24 +08:00

25 lines
611 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
type ProxyType = 'dev' | 'test' | 'prod'
interface ViteEnv {
VITE_PORT: number
VITE_USE_PROXY?: boolean
VITE_USE_HASH?: boolean
VITE_APP_TITLE: string
VITE_PUBLIC_PATH: string
VITE_BASE_API: string
VITE_PROXY_TYPE?: ProxyType
}
interface ProxyConfig {
/** 匹配代理的前缀接口地址匹配到此前缀将代理的target地址 */
prefix: string
/** 代理目标地址,后端真实接口地址 */
target: string
/** 是否校验https证书 */
secure?: boolean
/** 是否修改请求头中的host */
changeOrigin?: boolean
/** 是否代理websocket */
ws?: boolean
}