Skip to content

Commit f2c4977

Browse files
committed
chore: add vercel silent and add sync documentation
1 parent b5c6b74 commit f2c4977

File tree

6 files changed

+34
-2
lines changed

6 files changed

+34
-2
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ How to get ids and token:
8282
- [How to find ids](https://docs.statbot.net/docs/faq/general/how-find-id/)
8383
- [Get discord token](https://www.androidauthority.com/get-discord-token-3149920/)
8484

85+
You can visit [midjourney-cookbook](https://gptgenius.github.io/midjourney-cookbook/) to get some samples about `Midjourney` prompts.
86+
87+
### 4. Keep code synchronized (optional)
88+
see [Sync Fork](docs/sync.md)
89+
8590
## Other deployment methods
8691
Run `pnpm build` and `pnpm run server`. Refer: [astro-node](https://docs.astro.build/en/guides/integrations-guide/node/#standalone)
8792

README.zh-CN.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373

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

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

88+
可以前往 [midjourney-cookbook](https://gptgenius.github.io/midjourney-cookbook/) 获取一些 `Midjourney` prompt 样例
89+
8690
### 4. 设置默认语言(可选)
8791
站点的默认语言是英文的,页面中支持切换语言,如果你希望部署一个默认中文站点,可以设置 **LANGUAGE**`zh`,支持在 Vercel 环境变量和 `.env` 文件中配置
8892

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

9496
> vercel.app 域名受限,但 vercel 本身并未受限
9597
98+
### 6. 保持代码同步更新(可选)
99+
[Sync Fork](docs/sync.md)
100+
96101
## 其他部署方式
97102
运行 `pnpm build``pnpm run server`,参考:[astro-node](https://docs.astro.build/en/guides/integrations-guide/node/#standalone)
98103

assets/sync-1.png

64.7 KB
Loading

assets/sync-2.png

71.6 KB
Loading

docs/sync.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Sync Fork
2+
If you wish to keep your forked code updated, you may follow these steps:
3+
4+
如果你希望保持 fork 代码的同步更新,可以按以下步骤来操作:
5+
### 1. First
6+
Click Actions tab and enable workflows
7+
8+
点击 Actions 标签页然后启用 workflows
9+
10+
![](../assets/sync-1.png)
11+
12+
### 2. Second
13+
Click `Upsteam Sync` and enable this workflow
14+
15+
点击 `Upsteam Sync` 并且启用该 workflow
16+
17+
![](../assets//sync-2.png)

vercel.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"github": {
3+
"silent": true
4+
}
5+
}

0 commit comments

Comments
 (0)