From ade92f7ec10dadc747961591b44016c976c5a479 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 21 Jul 2023 14:34:42 -0700 Subject: [PATCH] feat: only upload in prod --- src/_data/music.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_data/music.js b/src/_data/music.js index 30fabffa..fa0c27ec 100644 --- a/src/_data/music.js +++ b/src/_data/music.js @@ -226,7 +226,7 @@ module.exports = async function () { charts.artists = _.orderBy(Object.values(charts.artists), ['plays'], ['desc']).splice(0, 8) charts.albums = _.orderBy(Object.values(charts.albums), ['plays'], ['desc']).splice(0, 8) - if (!_.isEmpty(diffedTracks)) { + if (!_.isEmpty(diffedTracks) && process.env.ELEVENTY_PRODUCTION === 'true') { await client.send( new PutObjectCommand({ Bucket: WASABI_BUCKET,