mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): update service and proxy config
This commit is contained in:
16
src/typings/env.d.ts
vendored
16
src/typings/env.d.ts
vendored
@ -10,12 +10,16 @@ type ServiceEnvType = 'dev' | 'test' | 'prod';
|
||||
interface ServiceEnvConfig {
|
||||
/** 请求地址 */
|
||||
url: string;
|
||||
/** 匹配路径的正则字符串, 用于拦截地址转发代理(任意以 /开头 + 字符串, 单个/不起作用) */
|
||||
urlPattern: '/url-pattern';
|
||||
/** 另一个后端请求地址(有多个不同的后端服务时) */
|
||||
secondUrl: string;
|
||||
/** 匹配路径的正则字符串, 用于拦截地址转发代理(任意以 /开头 + 字符串, 单个/不起作用) */
|
||||
secondUrlPattern: '/second-url-pattern';
|
||||
}
|
||||
|
||||
interface ServiceEnvConfigWithProxyPattern extends ServiceEnvConfig {
|
||||
/**
|
||||
* 匹配路径的正则字符串
|
||||
* - 用于拦截地址转发代理(任意以 /开头 + 字符串, 单个/不起作用)
|
||||
* - 和后端请求地址的前缀无关
|
||||
* - 有多个后端请求实例时,需要创建不同的值
|
||||
*/
|
||||
proxyPattern: 'proxy-pattern';
|
||||
}
|
||||
|
||||
interface ImportMetaEnv {
|
||||
|
Reference in New Issue
Block a user