This commit is contained in:
zeppi 2021-07-29 11:49:01 -04:00
parent ffc93936a4
commit e8f5cc7f72

View file

@ -69,12 +69,10 @@ if (process.env.SDK_API_URL) {
} }
let sdkAPIHost = process.env.SDK_API_HOST || 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`; export const SDK_API_PATH = `${sdkAPIHost}/api/v1`;
const proxyURL = `${SDK_API_PATH}/proxy`; const proxyURL = LBRY_WEB_PUBLISH_API || `${SDK_API_PATH}/proxy`;
Lbry.setDaemonConnectionString(proxyURL); Lbry.setDaemonConnectionString(proxyURL);