mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-12 04:43:42 +08:00
fix(projects): fix proxy config
This commit is contained in:
@@ -7,7 +7,7 @@ import { createServiceConfig } from '../../src/utils/service';
|
||||
* @param env - The current env
|
||||
*/
|
||||
export function createViteProxy(env: Env.ImportMeta) {
|
||||
const isEnableHttpProxy = env.VITE_HTTP_PROXY === 'Y';
|
||||
const isEnableHttpProxy = env.DEV && env.VITE_HTTP_PROXY === 'Y';
|
||||
|
||||
if (!isEnableHttpProxy) return undefined;
|
||||
|
||||
|
Reference in New Issue
Block a user