bugfix
This commit is contained in:
parent
ba1f7e67e4
commit
9c5c566e3a
1 changed files with 3 additions and 2 deletions
|
@ -72,7 +72,8 @@ let sdkAPIHost = process.env.SDK_API_HOST || process.env.SDK_API_URL;
|
||||||
sdkAPIHost = LBRY_WEB_API;
|
sdkAPIHost = LBRY_WEB_API;
|
||||||
|
|
||||||
export const SDK_API_PATH = `${sdkAPIHost}/api/v1`;
|
export const SDK_API_PATH = `${sdkAPIHost}/api/v1`;
|
||||||
const proxyURL = LBRY_WEB_PUBLISH_API || `${SDK_API_PATH}/proxy`;
|
const proxyURL = `${SDK_API_PATH}/proxy`;
|
||||||
|
const publishURL = LBRY_WEB_PUBLISH_API; // || `${SDK_API_PATH}/proxy`;
|
||||||
|
|
||||||
Lbry.setDaemonConnectionString(proxyURL);
|
Lbry.setDaemonConnectionString(proxyURL);
|
||||||
|
|
||||||
|
@ -82,7 +83,7 @@ Lbry.setOverride(
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
apiPublishCallViaWeb(
|
apiPublishCallViaWeb(
|
||||||
apiCall,
|
apiCall,
|
||||||
proxyURL,
|
publishURL,
|
||||||
Lbry.getApiRequestHeaders() && Object.keys(Lbry.getApiRequestHeaders()).includes(X_LBRY_AUTH_TOKEN)
|
Lbry.getApiRequestHeaders() && Object.keys(Lbry.getApiRequestHeaders()).includes(X_LBRY_AUTH_TOKEN)
|
||||||
? Lbry.getApiRequestHeaders()[X_LBRY_AUTH_TOKEN]
|
? Lbry.getApiRequestHeaders()[X_LBRY_AUTH_TOKEN]
|
||||||
: '',
|
: '',
|
||||||
|
|
Loading…
Reference in a new issue