Skip to content

Instantly share code, notes, and snippets.

View persvensson1337's full-sized avatar

persvensson1337

View GitHub Profile
@SafEight
SafEight / notion2blog.js
Last active December 9, 2021 00:09 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "example.com"
const START_PAGE = "https://www.notion.so/example"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS",