Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages