linyuxuanlin / Gallery-Portfolio

一个简单的瀑布流摄影作品展示站,图片储存在免费的 Cloudflare R2
https://gallery-portfolio.wiki-power.com/
MIT License
281 stars 70 forks source link

merge upstream #2

Closed jiengup closed 3 months ago

vercel[bot] commented 3 months ago

@jiengup is attempting to deploy a commit to the powerlin's projects Team on Vercel.

A member of the Team first needs to authorize it.

jiengup commented 3 months ago

A great project! 个性化的时候误操作了,sorry for that. 我自己在部署的时候发现一个bug,代码修改成这样才能work

async function getExifData(key) {
   console.info(key)
   const relativekey = `${IMAGE_DIR}/${path.basename(key)}`;
   const getObjectParams = {
     Bucket: BUCKET_NAME,
     Key: relativekey
   };

另外还有环境变量中的R2_IMAGE_BASE_URL可以再详细说明一些 例如使用R2部署的时候,需要开通 Public URL Access 之后利用cloudflare提供的 URL 才能 work