fix beatsaver api not being proxied
All checks were successful
deploy / deploy (push) Successful in 56s

This commit is contained in:
Lee 2023-10-18 03:14:40 +01:00
parent 6055783404
commit e9616c8d4c

View File

@ -1,7 +1,8 @@
import { default as createQueue, PRIORITY } from "../http-queue";
import ssrConfig from "../../../ssr-config";
import { substituteVars } from "../../../utils/format";
import { default as createQueue, PRIORITY } from "../http-queue";
const BEATMAPS_API_URL = "https://api.beatsaver.com/";
const BEATMAPS_API_URL = ssrConfig.proxy + "/https://api.beatsaver.com";
const SONG_BY_HASH_URL = BEATMAPS_API_URL + "/maps/hash/${hash}";
const SONG_BY_KEY_URL = BEATMAPS_API_URL + "/maps/id/${key}";