fix url
This commit is contained in:
parent
734a37c951
commit
55b529ec0f
2 changed files with 6 additions and 3 deletions
|
@ -4,6 +4,7 @@ const config = {
|
|||
WEB_SERVER_PORT: 1337,
|
||||
DOMAIN: 'https://beta.lbry.tv',
|
||||
SITE_TITLE: 'lbry.tv',
|
||||
LBRY_TV_API: 'https://api.lbry.tv',
|
||||
};
|
||||
|
||||
config.DOMAIN_LOCAL = `http://localhost:${config.WEB_SERVER_PORT}`;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import { DOMAIN } from 'config';
|
||||
const { LBRY_TV_API } = require('../../../config');
|
||||
|
||||
export function generateStreamUrl(claimName, claimId) {
|
||||
const prefix = process.env.SDK_API_URL || DOMAIN;
|
||||
function generateStreamUrl(claimName, claimId) {
|
||||
const prefix = process.env.SDK_API_URL || LBRY_TV_API;
|
||||
return `${prefix}/content/claims/${claimName}/${claimId}/stream`;
|
||||
}
|
||||
|
||||
module.exports = { generateStreamUrl };
|
||||
|
|
Loading…
Reference in a new issue