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

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

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