mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
support premiun-cdn
uploads
This commit is contained in:
parent
5421a9e4e3
commit
597d9c0e22
@ -51,9 +51,7 @@ export default async (req, res) => {
|
|||||||
let url = null
|
let url = null
|
||||||
|
|
||||||
switch (providerType) {
|
switch (providerType) {
|
||||||
case "music": {
|
case "premium-cdn": {
|
||||||
console.debug("uploading to backblaze b2")
|
|
||||||
|
|
||||||
// use backblaze b2
|
// use backblaze b2
|
||||||
await global.b2Storage.authorize()
|
await global.b2Storage.authorize()
|
||||||
|
|
||||||
@ -71,7 +69,7 @@ export default async (req, res) => {
|
|||||||
info: build.metadata
|
info: build.metadata
|
||||||
})
|
})
|
||||||
|
|
||||||
url = path.join(`https://`, process.env.B2_ENDPOINT, process.env.B2_BUCKET, remotePath)
|
url = path.join(`https://`, process.env.B2_CDN_ENDPOINT, process.env.B2_BUCKET, remotePath)
|
||||||
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user