chore: image optimization

This commit is contained in:
Cory Dransfeldt 2023-05-26 17:33:15 -07:00
parent 52b079515d
commit 2b8dca5ca8
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ module.exports = {
)
: `https://cdn.coryd.dev/albums/${media.name.replace(/\s+/g, '-').toLowerCase()}.jpg`
},
proxy: (url, host, cdn) => {
return url.replace(host, cdn)
movie: (url, host, cdn) => {
return url.replace(host, cdn).replace('600', '200').replace('900', '300')
},
}