I have been a Notion user for well over a year and really enjoyed it. I have been using it heavily for note taking and interested in turning it to my personal blog, so I don't have to maintain the content separately. While Notion still do not provide support for custom domain, there are some solutions out there like Super, NotionHost, Potion, etc. offering you a solution for a few bucks a month. I've tried only Super but later switch to Fruition due to its flexibility and I can have more control over the code. Please visit Fruition first before continue digging to this repo.
This is a CI wrapper for Fruition for automatic deployment to CloudFlare. The reason I wanted this is because:
- Editting flexibility: I want to be able to quickly add a
slug
, rungit push
and have my Worker updated automatically instead of going through CloudFlare dashboard. - Code versioning, of course
- Follow Fruition tutorial to set up your Notion
hello-world
site first, once it is running, get back here. - Clone this project
- Create a Github repo, add
Secrets
for accessing CloudFlare with this guide
CF_API_TOKEN
: Your CF tokenCF_ACCOUNT_ID
: Your Worker account idCF_ZONE_ID
: Zone ID to deploy to
- Config
wrangler.toml
file, change
name
to the name of your workerroute
to the route you want to serve your content
- Push your change to Github and check CloudFlare Workers, you should see it deployed.