Skip to content

Instantly share code, notes, and snippets.

View theghostmac's full-sized avatar
🌴
In between work and play.

MacBobby Chibuzor theghostmac

🌴
In between work and play.
View GitHub Profile
@theghostmac
theghostmac / notion2blog.js
Last active October 8, 2021 22:13 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "ghostmac.io"
const START_PAGE = "https://ghostmac.notion.site/Home-1c58eda481d549c5a47a985627890368"
const DISQUS_SHORTNAME = "ghostmac"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",