This commit is contained in:
Sean Yesmunt 2019-10-22 10:40:57 -04:00
parent 734a37c951
commit 55b529ec0f
2 changed files with 6 additions and 3 deletions

View file

@ -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}`;

View file

@ -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 };