Notion Webhook 带来的实时发布链路
从轮询变成事件驱动:接收 Notion Webhook,再调用 Vercel Deploy Hook,让内容更新自动触发网站构建。
Apr 3, 2025 1 min read
Leave a thought
Comments live in GitHub Issues. Chinese and English pages share one conversation.
Loading comments…
从轮询变成事件驱动:接收 Notion Webhook,再调用 Vercel Deploy Hook,让内容更新自动触发网站构建。
Comments live in GitHub Issues. Chinese and English pages share one conversation.
Notion 支持 Webhook 以后,许多依赖轮询的自动化终于可以改成事件驱动。
对内容网站来说,一个很直接的应用是:Notion 页面发生变化时,由 Webhook 通知一个轻量服务,再通过 Vercel Deploy Hook 触发网站重新构建。
最小链路
以前需要定时检查“内容有没有变化”,现在只在变化真正发生时工作。链路更及时,也减少了没有意义的请求。