mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 04:22:33 +08:00
19 lines
447 B
TypeScript
19 lines
447 B
TypeScript
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
|
||
}
|