kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Update photos URL to CDN
rodzic
2698ec4284
commit
99f17befc0
2
.env
2
.env
|
@ -1,4 +1,4 @@
|
||||||
VUE_APP_API_URL="https://api.sotl.as"
|
VUE_APP_API_URL="https://api.sotl.as"
|
||||||
VUE_APP_WSS_URL="wss://api.sotl.as"
|
VUE_APP_WSS_URL="wss://api.sotl.as"
|
||||||
VUE_APP_PHOTOS_URL="https://images.sotl.as/photos"
|
VUE_APP_PHOTOS_URL="https://photos.sotl.as"
|
||||||
VUE_APP_PHOTOS_ORIGINAL_URL="https://sotlas-photos.s3.eu-central-003.backblazeb2.com/original"
|
VUE_APP_PHOTOS_ORIGINAL_URL="https://sotlas-photos.s3.eu-central-003.backblazeb2.com/original"
|
||||||
|
|
|
@ -4,7 +4,7 @@ export default {
|
||||||
if (size === 'original') {
|
if (size === 'original') {
|
||||||
return process.env.VUE_APP_PHOTOS_ORIGINAL_URL + '/' + photo.filename
|
return process.env.VUE_APP_PHOTOS_ORIGINAL_URL + '/' + photo.filename
|
||||||
} else {
|
} else {
|
||||||
return process.env.VUE_APP_PHOTOS_URL + '/' + size + '/' + photo.filename.substring(0, 2) + '/' + photo.filename
|
return process.env.VUE_APP_PHOTOS_URL + '/' + size + '/' + photo.filename
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue