3 ms·
I just discovered my favorite stack... - I write everything in Notion, and "publish to web" - Cloudflare Workers API pulls Notion data and does a bit of SW
by yawnxyz 3y ago
I just discovered my favorite stack...
- I write everything in Notion, and "publish to web"
- Cloudflare Workers API pulls Notion data and does a bit of SWR, w/ a block
- Sveltekit on Vercel grabs the Notion data, serves the pages
- Everything's up as soon as I type it in Notion!
Pros:
- Free
- Low maintenance / just works
- Easy to write. I like to plop my thoughts down in short posts, rather than long bursts of well-written essays
- Renders almost all Notion blocks, so what I see is what I get
Cons:
- Slow, because Notion, but I'm fine with that
Probably won't work for most people who want blazingly fast pages, or perfect static sites. I can pull the data on build and completely serve it as static, but then I have to redeploy, which only takes a few seconds but still takes me out of the flow. It fits my needs.
Happy to share the code too if anyone cares!
- topato 3y agoI'd actually be interested to know more/get at that sweet sweet code!
- yawnxyz 3y agoI just switched to this a few days ago; everything's still very very in flux: https://github.com/janzheng/janzheng-2 https://github.com/janzheng/janzheng-2 I'll have to do a better writeup of it once it's stable and fixed. (Sorry in advance; everything is in Svelte)