How this Blog works with Serverless Workers

How this Blog works with Serverless Workers

Created
May 7, 2020 03:42 PM
Last edited time
Last updated January 22, 2023
Tags
JavaScript
💡
This post is outdated - this page is now running NextJS and querying the Notion API directly.
 
Cloudflare provides an easy way to implement serverless workers directly on your site. This can be used to build yourself a Notion Blog like this. Or anything really. In the end, what you get is a serverless script that rewrites some queries and styling of the usually shared notion pages and provides it via your own domain. Best thing: It's actually free for up 100,000 requests per day, unlike solutions like Super, HostingPotion, or HostNotion.
 
The original script was published by mayneyao on GitHub and has since been improved by a lot of contributors. While my Blog is still running a customized version of the original that I might release one day if anyone cares, one of these contributors also made a neat site called Fruition that you can use to generate a script according to your needs yourself, make sure to check it out! If you're interested, also think about collaborating on their GitHub-Repo, it's linked below.