diff --git a/src/platforms/web/api-setup.js b/src/platforms/web/api-setup.js index 530a4351f..9af67ecbf 100644 --- a/src/platforms/web/api-setup.js +++ b/src/platforms/web/api-setup.js @@ -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(