添加Vercel对接S3对象存储的教程

This commit is contained in:
afoim
2025-05-05 07:55:01 +08:00
parent ae1c3a7b0f
commit 080702f232
3 changed files with 22 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@@ -0,0 +1,22 @@
---
title: 让Vercel对接你的S3对象存储仅下载
published: 2025-05-05
description: '可能很多小伙伴都使用过对象存储但是他们大部分都没一个图形界面虽然近年来有了AList这么一个非常全能的服务但是仍然需要独立服务器本篇将使用Vercel Function搭建一个精美的S3文件下载'
image: 'assets/2025-05-05-07-45-06-image.png'
tags: [Vercel, Nextjs]
category: '教程'
draft: false
lang: ''
---
# 正式开始
使用方法非常简单进入GitHub仓库[GitHub - afoim/S3cloudrive-index: S3cloudrive public directory listing. Powered by Next.js.](https://github.com/afoim/S3cloudrive-index)
按照README部署即可
# 原理
采用Vercel Function登录S3获取文件列表传递给前端拼接URL显示原项目是对接的OneDrive[iRedScarf/onedrive-index: OneDrive public directory listing, and One-Click Deploy to Vercel. Powered by Vercel and Next.js.](https://github.com/iRedScarf/onedrive-index)。本项目仅更改了后端对接的存储类型,里路上你可以三改后对接任意存储...
~~本人想对接天翼云盘PC的驱动但是登录鉴权一直不会做有没有人来帮帮我~~