Skip to content

A Github Action CI wrapper for Fruition setup for automatic deployment to CloudFlare Worker, to help you use your Notion with custom domain

Notifications You must be signed in to change notification settings

t18n/notion-cloudflare-worker

Repository files navigation

Personal Blog with Notion and CI deploy for CloudFlare Workers

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, run git push and have my Worker updated automatically instead of going through CloudFlare dashboard.
  • Code versioning, of course

Set up your site

  1. Follow Fruition tutorial to set up your Notion hello-world site first, once it is running, get back here.
  2. Clone this project
  3. Create a Github repo, add Secrets for accessing CloudFlare with this guide
  • CF_API_TOKEN: Your CF token
  • CF_ACCOUNT_ID: Your Worker account id
  • CF_ZONE_ID: Zone ID to deploy to
  1. Config wrangler.toml file, change
  • name to the name of your worker
  • route to the route you want to serve your content
  1. Push your change to Github and check CloudFlare Workers, you should see it deployed.

Resources

About

A Github Action CI wrapper for Fruition setup for automatic deployment to CloudFlare Worker, to help you use your Notion with custom domain

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published