chore: image optimization
This commit is contained in:
parent
52b079515d
commit
2b8dca5ca8
3 changed files with 4 additions and 4 deletions
|
@ -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')
|
||||
},
|
||||
}
|
||||
|
|
Reference in a new issue