File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- PUBLIC_SERVER_URL = https://api.spo-diary.ru/v2
2
- PUBLIC_SERVER_URL_SECOND = https://diary.kopchan7.keenetic.link/v2
1
+ # PUBLIC_SERVER_URL=https://api.spo-diary.ru/v2
2
+ # PUBLIC_SERVER_URL_SECOND=https://diary.kopchan7.keenetic.link/v2
3
+
4
+ PUBLIC_SERVER_URLS = https://api.spo-diary.ru/v2,https://diary.kopchan7.keenetic.link/v2
3
5
4
6
PUBLIC_MODE = dev
7
+
5
8
PUBLIC_BUNDLE_ANALYZE = true yarn build
9
+
6
10
PUBLIC_BETA_VERSION = 2.0.2
7
11
# main 51740302
8
12
# test 51723411
Original file line number Diff line number Diff line change 1
- export const BASE_URLS = ( process . env . PUBLIC_SERVER_URLS ) . split ( ',' )
1
+ export const BASE_URLS = ( process . env . PUBLIC_SERVER_URLS ) ? .split ( ',' )
2
2
export const MODE = process . env . PUBLIC_MODE
3
3
export const BETA_VERSION = process . env . PUBLIC_BETA_VERSION
4
4
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const makeRequest = async <T>(
26
26
27
27
clearTimeout ( timeoutId )
28
28
29
- /** В случае ошибки авторизации мы не делаем запрос на второй сервер, а сразу возвращаем ответ **/
29
+ /** В случае ошибки авторизации мы не делаем запрос на другой сервер, а сразу возвращаем ответ **/
30
30
if ( response . status === HTTP_STATUSES . UNAUTHORIZED ) {
31
31
return response
32
32
}
You can’t perform that action at this time.
0 commit comments