# 如何与上游代码保持同步跟新

如果您通过Vercel一键部署了自己的项目，将无法很好的与上游代码同步更新，只能重新部署，这是由于 Vercel 会默认为你创建一个新项目而不是 fork 本项目。 推荐您通过以下步骤重新部署一下，后续就可以同步上游代码，无需走整个重新部署的流程了

### 部署教程

#### 1、进入到本项目，点击右上角的fork按钮

![](/files/O33w6ahrJAR2LwoH00xH)

#### 2、打开vercel的网站，点击右上角的「add new」-「project」

![](/files/TQUX2eJ2lngitGdAF3pW)

#### 3、选择刚刚fork的项目，import

![](/files/VPlINk33ih9GdOWc83oC)

#### 4、展开「Environment Variables」，在第一个方框中填写「OPENAI\_API\_KEY」，第二个方框填你自己的openAI 的API key，然后点击add

![](/files/YA132ekb54VVxLc2Bl8u)

#### 5、点击deploy按钮，等待片刻即可部署成功

![](/files/F7upv1zv6rGT5S5xHRkf)

### 后续如何同步更新

#### 1、在自己的仓库找到fork的项目「AutoGPT-Next-Web」，点击「sync fork」

![](/files/lvrgFAMBiKhJ3XlzKQAN)

#### 2、同步之后，回到Vercel网站，找到刚刚部署的项目，点击进入，并找到如图示的按钮，点击进入

![](/files/jRahj9n0qQcoSAM8GBsJ)

#### 3、点击visit左边的三个点，找到redeploy按钮，并点击

![](/files/F8GXUgwr3gR9AYxvuh8G)

#### 4、稍等片刻即可重新部署成功，该方式不用重新走所有的部署流程，即可与上游的代码保持同步更新


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://autogpt-next-web.gitbook.io/autogpt-next-web/ru-he-yu-shang-you-dai-ma-bao-chi-tong-bu-gen-xin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
