use custom provider

This commit is contained in:
SrGooglo 2023-08-22 23:40:39 +00:00
parent cea6987f72
commit 2fe064e68a

View File

@ -2,8 +2,8 @@ import findSpotifyId from "@services/findSpotifyId"
import { Track } from "@shared-classes/DbModels"
import axios from "axios"
const syncLyricsProvider = `https://spotify-lyric-api.herokuapp.com`
const canvasProvider = `https://api.delitefully.com/api/canvas`
const syncLyricsProvider = process.env.LYRICS_SYNC_PROVIDER || `https://spotify-lyric-api.herokuapp.com`
const canvasProvider = process.env.LYRICS_CANVAS_PROVIDER || `https://c_cdn-test.ragestudio.net/api/canvas`
export default async (track, { req }) => {
if (typeof track !== "object") {