From 5040108dd5b85e012b4c6a86320775a8ce434be5 Mon Sep 17 00:00:00 2001 From: xsteadybcgo Date: Mon, 6 Sep 2021 14:36:20 +0800 Subject: [PATCH] fix: domain --- src/config/origin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/origin.ts b/src/config/origin.ts index d4a868e..2288784 100644 --- a/src/config/origin.ts +++ b/src/config/origin.ts @@ -9,12 +9,12 @@ if (process.env.REACT_APP_NODE_ENV === 'development') { ENDPOINTS_URL = 'https://test-elara2.patract.cn/api' WSS_ENDPOINTS_URL = 'wss://test-service.elara2.patract.cn' } else if (process.env.REACT_APP_NODE_ENV === 'pre-production') { - API_DOMAIN = 'https://test-pro.elara2.patract.cn/api' + API_DOMAIN = '/api' ENDPOINTS_URL = 'https://test-pro.service.elara2.patract.cn' WSS_ENDPOINTS_URL = 'wss://test-pro.service.elara2.patract.cn' } else if (process.env.REACT_APP_NODE_ENV === 'production') { - API_DOMAIN = 'https://elara2.patract.io/api' + API_DOMAIN = '/api' ENDPOINTS_URL = 'https://service.elara.patract.io' WSS_ENDPOINTS_URL = 'wss://service.elara.patract.io'