https://github.com/d12/cloudflare-blog-webhooks
Receive webhooks when new Cloudflare blog posts are published with specific tags.
https://github.com/d12/cloudflare-blog-webhooks
Last synced: over 1 year ago
JSON representation
Receive webhooks when new Cloudflare blog posts are published with specific tags.
- Host: GitHub
- URL: https://github.com/d12/cloudflare-blog-webhooks
- Owner: d12
- Created: 2023-10-22T15:21:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-23T14:23:45.000Z (over 2 years ago)
- Last Synced: 2025-02-12T15:18:02.667Z (over 1 year ago)
- Language: TypeScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Cloudflare Blog Webhooks
Cloudflare's Discord has a channel that can notify you when new posts are created, but there's no way to filter out the posts you don't care about.
This project lets you subscribe to specific blog post tags to ensure you only receive notifications for the posts you care about.
## Setup
1. Following [Cloudflare Workers documentation](https://developers.cloudflare.com/workers/), deploy this project to Cloudflare Workers.
2. Create a new d1 DB and update the name/id in `wrangler.toml`
3. Set the `WEBHOOK_URL` environment variable to a URL where you can recieve an HTTP Post webhook.
4. Set the `SUBSCRIBED_TAGS` environment variable to a list of Cloudflare Blog tags you're interested in. For example, `["Cloudflare Stream", "Cloudflare Images"]`
# Webhook definition
```
{
"title": BLOG_POST_TITLE,
"url": BLOG_POST_URL,
}
```