docs: add vercel instructions
BIN
docs/images/enable-actions-sync.jpg
Normal file
After Width: | Height: | Size: 137 KiB |
BIN
docs/images/enable-actions.jpg
Normal file
After Width: | Height: | Size: 130 KiB |
BIN
docs/images/vercel/vercel-create-1.jpg
Normal file
After Width: | Height: | Size: 85 KiB |
BIN
docs/images/vercel/vercel-create-2.jpg
Normal file
After Width: | Height: | Size: 131 KiB |
BIN
docs/images/vercel/vercel-create-3.jpg
Normal file
After Width: | Height: | Size: 106 KiB |
BIN
docs/images/vercel/vercel-env-edit.jpg
Normal file
After Width: | Height: | Size: 111 KiB |
BIN
docs/images/vercel/vercel-redeploy.jpg
Normal file
After Width: | Height: | Size: 102 KiB |
39
docs/vercel-cn.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# Vercel 的使用说明
|
||||
|
||||
## 如何新建项目
|
||||
当你从 Github fork 本项目之后,需要重新在 Vercel 创建一个全新的 Vercel 项目来重新部署,你需要按照下列步骤进行。
|
||||
|
||||

|
||||
1. 进入 Vercel 控制台首页;
|
||||
2. 点击 Add New;
|
||||
3. 选择 Project。
|
||||
|
||||

|
||||
1. 在 Import Git Repository 处,搜索 chatgpt-next-web;
|
||||
2. 选中新 fork 的项目,点击 Import。
|
||||
|
||||

|
||||
1. 在项目配置页,点开 Environmane Variables 开始配置环境变量;
|
||||
2. 依次新增名为 OPENAI_API_KEY 和 CODE 的环境变量;
|
||||
3. 填入环境变量对应的值;
|
||||
4. 点击 Add 确认增加环境变量;
|
||||
5. 请确保你添加了 OPENAI_API_KEY,否则无法使用;
|
||||
6. 点击 Deploy,创建完成,耐心等待 5 分钟左右部署完成。
|
||||
|
||||
## 如何增加自定义域名
|
||||
[TODO]
|
||||
|
||||
## 如何更改环境变量
|
||||

|
||||
1. 进去 Vercel 项目内部控制台,点击顶部的 Settings 按钮;
|
||||
2. 点击左侧的 Environment Variables;
|
||||
3. 点击已有条目的右侧按钮;
|
||||
4. 选择 Edit 进行编辑,然后保存即可。
|
||||
|
||||
⚠️️ 注意:每次修改完环境变量,你都需要[重新部署项目](#如何重新部署)来让改动生效!
|
||||
|
||||
## 如何重新部署
|
||||

|
||||
1. 进入 Vercel 项目内部控制台,点击顶部的 Deployments 按钮;
|
||||
2. 选择列表最顶部一条的右侧按钮;
|
||||
3. 点击 Redeploy 即可重新部署。
|