diff --git a/config.js b/config.js index 00dca2ff5..44049558b 100644 --- a/config.js +++ b/config.js @@ -8,6 +8,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.lbry.tv', + 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, WELCOME_VERSION: process.env.WELCOME_VERSION, diff --git a/ui/index.jsx b/ui/index.jsx index 460dedaa8..b85827b7f 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 } from 'config'; +import { LBRY_WEB_API, DEFAULT_LANGUAGE, LBRY_API_URL } from 'config'; // Import our app styles // If a style is not necessary for the initial page load, it should be removed from `all.scss` @@ -98,8 +98,8 @@ const { autoUpdater } = remote.require('electron-updater'); autoUpdater.logger = remote.require('electron-log'); // @endif -if (process.env.LBRY_API_URL) { - Lbryio.setLocalApi(process.env.LBRY_API_URL); +if (LBRY_API_URL) { + Lbryio.setLocalApi(LBRY_API_URL); } if (process.env.SEARCH_API_URL) {