fix api link for lbry.tv

This commit is contained in:
Sean Yesmunt 2019-10-23 10:14:39 -04:00
parent b5c7722cb3
commit 74a598c8cf

View file

@ -2,7 +2,8 @@ import { Lbry } from 'lbry-redux';
import apiPublishCallViaWeb from './publish';
import { X_LBRY_AUTH_TOKEN } from 'constants/token';
export const SDK_API_URL = process.env.SDK_API_URL || 'https://api.lbry.tv/api/v1/proxy';
const PROXY_PATH = 'api/v1/proxy';
export const SDK_API_URL = `${process.env.SDK_API_URL}/${PROXY_PATH}` || `https://api.lbry.tv/${PROXY_PATH}`;
Lbry.setDaemonConnectionString(SDK_API_URL);
Lbry.setOverride(