diff --git a/ui/index.jsx b/ui/index.jsx index 81138dd73..a77ff8562 100644 --- a/ui/index.jsx +++ b/ui/index.jsx @@ -65,12 +65,11 @@ if (process.env.SDK_API_URL) { } let sdkAPIHost = process.env.SDK_API_HOST || process.env.SDK_API_URL; -// @if TARGET='web' -sdkAPIHost = LBRY_WEB_PUBLISH_API || LBRY_WEB_API; -// @endif +sdkAPIHost = LBRY_WEB_API; export const SDK_API_PATH = `${sdkAPIHost}/api/v1`; const proxyURL = `${SDK_API_PATH}/proxy`; +const publishURL = LBRY_WEB_PUBLISH_API; // || `${SDK_API_PATH}/proxy`; Lbry.setDaemonConnectionString(proxyURL); @@ -80,7 +79,7 @@ Lbry.setOverride( new Promise((resolve, reject) => { apiPublishCallViaWeb( apiCall, - proxyURL, + publishURL, Lbry.getApiRequestHeaders() && Object.keys(Lbry.getApiRequestHeaders()).includes(X_LBRY_AUTH_TOKEN) ? Lbry.getApiRequestHeaders()[X_LBRY_AUTH_TOKEN] : '',