{"slug":"s3cloudrive","title":"让Vercel对接你的S3对象存储（仅下载）","description":"可能很多小伙伴都使用过对象存储，但是他们大部分都没一个图形界面，虽然近年来有了AList这么一个非常全能的服务，但是仍然需要独立服务器，本篇将使用Vercel Function搭建一个精美的S3文件下载","coverImage":"https://b.acofork.com/img/s3cloudrive-2025-05-05-07-45-06-image.webp","coverWidth":894,"coverHeight":663,"date":"2025-05-04","tags":["服务器"],"pinned":false,"wordCount":184,"html":"<blockquote>\n<p>视频教程（推荐）： <a href=\"https://www.bilibili.com/video/BV17b5gz5Ea4\" target=\"_blank\" rel=\"noopener noreferrer\">https://www.bilibili.com/video/BV17b5gz5Ea4</a></p>\n</blockquote>\n<h2 id=\"正式开始\">正式开始</h2><p>使用方法非常简单，进入GitHub仓库：<a href=\"https://github.com/afoim/S3cloudrive-index\" target=\"_blank\" rel=\"noopener noreferrer\">GitHub - afoim/S3cloudrive-index: S3cloudrive public directory listing. Powered by Next.js.</a></p>\n<p>按照README部署即可</p>\n<h2 id=\"原理\">原理</h2><p>采用Vercel Function登录S3，获取文件列表传递给前端拼接URL显示，原项目是对接的OneDrive：<a href=\"https://github.com/iRedScarf/onedrive-index\" target=\"_blank\" rel=\"noopener noreferrer\">iRedScarf/onedrive-index: OneDrive public directory listing, and One-Click Deploy to Vercel. Powered by Vercel and Next.js.</a>。本项目仅更改了后端对接的存储类型，理论上你可以三改后对接任意存储...</p>\n<p><del>本人想对接天翼云盘PC的驱动，但是登录鉴权一直不会做，有没有人来帮帮我（）</del></p>\n","toc":[{"id":"正式开始","text":"正式开始","depth":2},{"id":"原理","text":"原理","depth":2}]}