Move recsys endpoint to .env for easier debugging

Easier to point to a localhost server to capture the beacons for debugging.
This commit is contained in:
infinite-persistence 2022-02-07 19:49:11 +08:00 committed by Thomas Zarebczan
parent 57bcf6bc03
commit 231ac139d4
3 changed files with 4 additions and 1 deletions

View file

@ -15,6 +15,7 @@ COMMENT_SERVER_API=https://comments.odysee.com/api/v2
SEARCH_SERVER_API_ALT=https://recsys.odysee.com/search SEARCH_SERVER_API_ALT=https://recsys.odysee.com/search
SEARCH_SERVER_API=https://lighthouse.odysee.com/search SEARCH_SERVER_API=https://lighthouse.odysee.com/search
SOCKETY_SERVER_API=wss://sockety.odysee.com/ws SOCKETY_SERVER_API=wss://sockety.odysee.com/ws
RECSYS_ENDPOINT=https://recsys.odysee.com/log/video/view
THUMBNAIL_CDN_URL=https://thumbnails.odycdn.com/optimize/ THUMBNAIL_CDN_URL=https://thumbnails.odycdn.com/optimize/
THUMBNAIL_CARDS_CDN_URL=https://cards.odycdn.com/ THUMBNAIL_CARDS_CDN_URL=https://cards.odycdn.com/
THUMBNAIL_HEIGHT=220 THUMBNAIL_HEIGHT=220

View file

@ -20,6 +20,7 @@ const config = {
DOMAIN: process.env.DOMAIN, DOMAIN: process.env.DOMAIN,
SHARE_DOMAIN_URL: process.env.SHARE_DOMAIN_URL, SHARE_DOMAIN_URL: process.env.SHARE_DOMAIN_URL,
URL: process.env.URL, URL: process.env.URL,
RECSYS_ENDPOINT: process.env.RECSYS_ENDPOINT,
THUMBNAIL_CDN_URL: process.env.THUMBNAIL_CDN_URL, THUMBNAIL_CDN_URL: process.env.THUMBNAIL_CDN_URL,
THUMBNAIL_CARDS_CDN_URL: process.env.THUMBNAIL_CARDS_CDN_URL, THUMBNAIL_CARDS_CDN_URL: process.env.THUMBNAIL_CARDS_CDN_URL,
THUMBNAIL_HEIGHT: process.env.THUMBNAIL_HEIGHT, THUMBNAIL_HEIGHT: process.env.THUMBNAIL_HEIGHT,

View file

@ -1,3 +1,4 @@
import { RECSYS_ENDPOINT } from 'config';
import { selectUser } from 'redux/selectors/user'; import { selectUser } from 'redux/selectors/user';
import { makeSelectRecommendedRecsysIdForClaimId } from 'redux/selectors/search'; import { makeSelectRecommendedRecsysIdForClaimId } from 'redux/selectors/search';
import { v4 as Uuidv4 } from 'uuid'; import { v4 as Uuidv4 } from 'uuid';
@ -8,7 +9,7 @@ import { selectPlayingUri, selectPrimaryUri } from 'redux/selectors/content';
import { selectClientSetting, selectDaemonSettings } from 'redux/selectors/settings'; import { selectClientSetting, selectDaemonSettings } from 'redux/selectors/settings';
import { history } from 'ui/store'; import { history } from 'ui/store';
const recsysEndpoint = 'https://recsys.odysee.com/log/video/view'; const recsysEndpoint = RECSYS_ENDPOINT;
const recsysId = 'lighthouse-v0'; const recsysId = 'lighthouse-v0';
const getClaimIdsFromUris = (uris) => { const getClaimIdsFromUris = (uris) => {