Skip to content

Instantly share code, notes, and snippets.

View builtbyproxy's full-sized avatar
🔥
HotHack

Lachlan Young builtbyproxy

🔥
HotHack
View GitHub Profile
@louisbarclay
louisbarclay / roam-worker-script.js
Created January 20, 2021 21:40
Cloudflare worker script to put Roam Research public graph at custom domain
// Config for our domain (where we want the Roam blog to live)
// and the start page (where we want our readers to land)
// Change these to suit your case!
// IMPORTANT: don't have '/' at the end of either domain or startPage
const config = {
domain: "roam.cloak.ist",
startPage: "/#/app/nudge/page/RI01qJl4P",
}
// Function that processes requests to the domain the worker is at