Skip to content

arunkarthik-n/hyvor-blogs-cloudflare-workers

 
 

Repository files navigation

This is a Cloudflare Worker to self-serve a Hyvor Blogs blog.

Deploy to Cloudflare Workers

Configuration

You need to configure the following variables in the wrangler.toml file.

  • BASE_PATH - The base path of your blog. For example, if you want to serve your blog at https://example.com/blog, set this to /blog. If you want to serve at the root, set this to /.
  • SUBDOMAIN - The subdomain of your blog. Get this from the Hyvor Blogs Console.
  • DELIVERY_API_KEY - The Delivery API Key of your blog. Get this from the Hyvor Blogs Console → Settings → API Keys.
  • WEBHOOK_SECRET - The webhook secret of the webhook sent to _hb_webhook. Get this from the Hyvor Blogs Console → Settings → Webhooks.

Reserved Routes

These routes are reserved for the worker. You should not create posts in your blog with these paths.

  • {BASE_PATH}/_hb_webhook (POST only) - Webhook handler for clearing cache
  • {BASE_PATH}/_cache_health - Cache (KV) health check

About

Host a blog on a subdirectory using Cloudflare Workers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%