posts: 添加关于如何使用Vercel部署onedrive-index项目的教程文档

This commit is contained in:
二叉树树
2025-11-14 15:22:09 +08:00
parent 3a37af49ff
commit a0c7705a40
9 changed files with 45 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -0,0 +1,45 @@
---
title: 来让我们用Vercel来分享你的OneDrive
published: 2025-11-14T15:03:46
description: 利用onedrive-index这个项目可以将你的OneDrive映射到公网轻松分发资源
image: ../assets/images/onedrive-index.png
tags:
- Vercel
- OneDrive
draft: false
lang: ""
---
# 正式开始
你可以根据[前文](/posts/ms-e3/)免费拿E3得到至高免费5T的OneDrive存储空间也可以用你个人永久免费的5G空间都可以
前往 [高级 - OneDrive Vercel Index](https://ovi.swo.moe/zh/docs/advanced#%E4%BD%BF%E7%94%A8%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84-client-id-%E4%B8%8E-secret) 拿到 clientid 和 secret
前往该页面,点击快速部署 [onedrive-index/README.zh-CN.md at main · iRedScarf/onedrive-index](https://github.com/iRedScarf/onedrive-index/blob/main/README.zh-CN.md#%E9%83%A8%E7%BD%B2%E5%88%B0vercel)
![](../assets/images/onedrive-index-1.png)
填写必须的5个环境变量
![](../assets/images/onedrive-index-2.png)
其中USER_PRINCIPAL_NAME为类似 huding@Smartree233.onmicrosoft.com 的电子邮箱也就是你登陆OneDrive的用户名
Vercel部署完毕后会报错连不上Redis因为我们还没创建和绑定现在我们开始做
![](../assets/images/onedrive-index-3.png)
前往 https://vercel.com/integrations/upstash 点击 Install
![](../assets/images/onedrive-index-4.png)
选择你要绑定的Vercel项目并且设置Redis实例名称
![](../assets/images/onedrive-index-5.png)
来到Vercel的环境变量页面这就是绑定成功了
![](../assets/images/onedrive-index-6.png)
随便打开一个部署,点击 Redeploy 重新部署,就能成功连接数据库了
接下来访问你的项目域名进入OneDrive-Index的引导需要打开微软的一个链接授权
授权后会重定向到一个localhost的域名复制该URI粘贴回OneDrive-Index即可仅需一次
成功部署!
![](../assets/images/onedrive-index-7.png)