diff --git a/pages/api/beatsaver/art/[hash].js b/pages/api/beatsaver/art/[hash].js index 687fd86..0901b22 100644 --- a/pages/api/beatsaver/art/[hash].js +++ b/pages/api/beatsaver/art/[hash].js @@ -14,9 +14,8 @@ export default async function handler(req, res) { const imagePath = cacheDir + path.sep + mapHash + "." + ext; const exists = fs.existsSync(imagePath); - console.log(`https://na.cdn.beatsaver.com/${mapHash}.${ext}`) if (!exists) { - const data = await fetch(`https://na.cdn.beatsaver.com/${mapHash}.${ext}` ); + const data = await fetch(`https://eu.cdn.beatsaver.com/${mapHash}.${ext}` ); let buffer = await data.buffer(); buffer = await sharp(buffer).resize(150, 150).toBuffer() fs.writeFileSync(imagePath, buffer); diff --git a/styles/globals.css b/styles/globals.css index c48043c..ac90d4b 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -7,6 +7,13 @@ line-height: 0.3em; } +/* Needed to see the UI in the browser, + * when using OBS it overrides the background color anyway + */ +*, html, html * { + background-color: black; +} + .loading { color: black; }