From e2877cf505d71899dc8f12c4492011f6c8541940 Mon Sep 17 00:00:00 2001 From: zeppi Date: Thu, 29 Jul 2021 09:53:44 -0400 Subject: [PATCH] alt publish api --- config.js | 2 +- ui/index.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index 28f0b0f07..7918cef01 100644 --- a/config.js +++ b/config.js @@ -9,6 +9,7 @@ const config = { WEBPACK_ELECTRON_PORT: process.env.WEBPACK_ELECTRON_PORT, WEB_SERVER_PORT: process.env.WEB_SERVER_PORT, LBRY_WEB_API: process.env.LBRY_WEB_API, //api.na-backend.odysee.com', + LBRY_WEB_PUBLISH_API: process.env.LBRY_WEB_PUBLISH_API, LBRY_API_URL: process.env.LBRY_API_URL, //api.lbry.com', LBRY_WEB_STREAMING_API: process.env.LBRY_WEB_STREAMING_API, //cdn.lbryplayer.xyz', LBRY_WEB_BUFFER_API: process.env.LBRY_WEB_BUFFER_API, @@ -41,7 +42,6 @@ const config = { DEFAULT_LANGUAGE: process.env.DEFAULT_LANGUAGE, AUTO_FOLLOW_CHANNELS: process.env.AUTO_FOLLOW_CHANNELS, UNSYNCED_SETTINGS: process.env.UNSYNCED_SETTINGS, - // AVATAR_DEFAULT: process.env.AVATAR_DEFAULT, // ENABLE FEATURES ENABLE_COMMENT_REACTIONS: process.env.ENABLE_COMMENT_REACTIONS === 'true', diff --git a/ui/index.jsx b/ui/index.jsx index bd68ec296..707a5dc41 100644 --- a/ui/index.jsx +++ b/ui/index.jsx @@ -35,7 +35,7 @@ import { doAuthTokenRefresh, } from 'util/saved-passwords'; import { X_LBRY_AUTH_TOKEN } from 'constants/token'; -import { LBRY_WEB_API, DEFAULT_LANGUAGE, LBRY_API_URL } from 'config'; +import { LBRY_WEB_API, DEFAULT_LANGUAGE, LBRY_API_URL, LBRY_WEB_PUBLISH_API } from 'config'; // Import 3rd-party styles before ours for the current way we are code-splitting. import 'scss/third-party.scss'; @@ -70,7 +70,7 @@ if (process.env.SDK_API_URL) { let sdkAPIHost = process.env.SDK_API_HOST || process.env.SDK_API_URL; // @if TARGET='web' -sdkAPIHost = LBRY_WEB_API; +sdkAPIHost = LBRY_WEB_PUBLISH_API || LBRY_WEB_API; // @endif export const SDK_API_PATH = `${sdkAPIHost}/api/v1`;