Merge pull request #199 from elliotxiang/main

proxy fail fix
This commit is contained in:
Soybean
2023-03-07 16:04:02 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -25,6 +25,6 @@ export function getServiceEnvConfig(env: ImportMetaEnv): ServiceEnvConfigWithPro
return { return {
...config, ...config,
proxyPattern: 'proxy-pattern' proxyPattern: '/proxy-pattern'
}; };
} }

View File

@@ -19,7 +19,7 @@ interface ServiceEnvConfigWithProxyPattern extends ServiceEnvConfig {
* - 和后端请求地址的前缀无关 * - 和后端请求地址的前缀无关
* - 有多个后端请求实例时,需要创建不同的值 * - 有多个后端请求实例时,需要创建不同的值
*/ */
proxyPattern: 'proxy-pattern'; proxyPattern: '/proxy-pattern';
} }
interface ImportMetaEnv { interface ImportMetaEnv {