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`;