Undo the change and whitelist beatleader cdn

This commit is contained in:
Liam 2022-10-28 21:05:38 +01:00
parent 60df8bac2c
commit dc8fb42766
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ const nextConfig = {
images: {
domains: [
"cdn.scoresaber.com",
"cdn.beatleader.xyz",
"eu.cdn.beatsaver.com",
"cdn.fascinated.cc",
"avatars.akamai.steamstatic.com",

View File

@ -42,7 +42,7 @@ export const usePlayerDataStore = create<PlayerDataState>()((set) => ({
id: playerId,
isLoading: false,
pp: data.pp,
avatar: `https://cdn.scoresaber.com/avatars/${playerId}.jpg`,
avatar: data.avatar || data.profilePicture,
globalPos: data.rank,
countryRank: data.countryRank,
country: data.country,