Skip to content

Instantly share code, notes, and snippets.

View aman-gautam's full-sized avatar
💭
Building Products... Always Learning!

Aman Gautam aman-gautam

💭
Building Products... Always Learning!
View GitHub Profile
@aman-gautam
aman-gautam / notion2blog.js
Created August 4, 2022 15:35 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "agodrich.com"
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2"
const DISQUS_SHORTNAME = "agodrich"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",