Skip to content

Commit

Permalink
chore: add vercel silent and add sync documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lvqq committed May 19, 2023
1 parent b5c6b74 commit f2c4977
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ How to get ids and token:
- [How to find ids](https://docs.statbot.net/docs/faq/general/how-find-id/)
- [Get discord token](https://www.androidauthority.com/get-discord-token-3149920/)

You can visit [midjourney-cookbook](https://gptgenius.github.io/midjourney-cookbook/) to get some samples about `Midjourney` prompts.

### 4. Keep code synchronized (optional)
see [Sync Fork](docs/sync.md)

## Other deployment methods
Run `pnpm build` and `pnpm run server`. Refer: [astro-node](https://docs.astro.build/en/guides/integrations-guide/node/#standalone)

Expand Down
9 changes: 7 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@

如果没有 OpenAI API Key 可查看 [也许是时候拥有自己的「ChatGPT」了](https://juejin.cn/post/7210274432332939322)

> 注意:Vercel 所有环境变量设置后需要重新部署才能生效
### 3. 配置 Midjourney(可选)
如果你期望使用 `Midjourney` 的 AI 绘图功能,可以设置 `Discord` 的相关配置进行使用,包括以下字段:
- `DISCORD_SERVER_ID`
Expand All @@ -83,16 +85,19 @@
- [How to find ids](https://docs.statbot.net/docs/faq/general/how-find-id/)
- [Get discord token](https://www.androidauthority.com/get-discord-token-3149920/)

可以前往 [midjourney-cookbook](https://gptgenius.github.io/midjourney-cookbook/) 获取一些 `Midjourney` prompt 样例

### 4. 设置默认语言(可选)
站点的默认语言是英文的,页面中支持切换语言,如果你希望部署一个默认中文站点,可以设置 **LANGUAGE**`zh`,支持在 Vercel 环境变量和 `.env` 文件中配置

> 注意:Vercel 所有环境变量设置后需要重新部署才能生效
### 5. 绑定域名(可选)
拥有自己的域名,可以在 vercel 上的 domain 中进行设置,即可无障碍访问

> vercel.app 域名受限,但 vercel 本身并未受限
### 6. 保持代码同步更新(可选)
[Sync Fork](docs/sync.md)

## 其他部署方式
运行 `pnpm build``pnpm run server`,参考:[astro-node](https://docs.astro.build/en/guides/integrations-guide/node/#standalone)

Expand Down
Binary file added assets/sync-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sync-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions docs/sync.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Sync Fork
If you wish to keep your forked code updated, you may follow these steps:

如果你希望保持 fork 代码的同步更新,可以按以下步骤来操作:
### 1. First
Click Actions tab and enable workflows

点击 Actions 标签页然后启用 workflows

![](../assets/sync-1.png)

### 2. Second
Click `Upsteam Sync` and enable this workflow

点击 `Upsteam Sync` 并且启用该 workflow

![](../assets//sync-2.png)
5 changes: 5 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"github": {
"silent": true
}
}

0 comments on commit f2c4977

Please sign in to comment.