fix beatsaver api not being proxied
All checks were successful
deploy / deploy (push) Successful in 56s
All checks were successful
deploy / deploy (push) Successful in 56s
This commit is contained in:
parent
6055783404
commit
e9616c8d4c
@ -1,7 +1,8 @@
|
|||||||
import { default as createQueue, PRIORITY } from "../http-queue";
|
import ssrConfig from "../../../ssr-config";
|
||||||
import { substituteVars } from "../../../utils/format";
|
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_HASH_URL = BEATMAPS_API_URL + "/maps/hash/${hash}";
|
||||||
const SONG_BY_KEY_URL = BEATMAPS_API_URL + "/maps/id/${key}";
|
const SONG_BY_KEY_URL = BEATMAPS_API_URL + "/maps/id/${key}";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user