<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/4-months-ago-i-posted-my-plan-for-a-web-studio-here-here-s-what-actually-happened--kxipsxrys" -->

---
title: 4 months ago, I posted my plan for a web studio here....
description: An indie web studio builder recounts three edge-runtime bugs hit while shipping a Next.js 15 monorepo (Turborepo, pnpm, five apps, twelve packages) on...
canonical: https://daily.dev/posts/4-months-ago-i-posted-my-plan-for-a-web-studio-here-here-s-what-actually-happened--kxipsxrys
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 4 months ago, I posted my plan for a web studio here. Here's what actually happened. | daily.dev
og:description: An indie web studio builder recounts three edge-runtime bugs hit while shipping a Next.js 15 monorepo (Turborepo, pnpm, five apps, twelve packages) on...
og:url: https://daily.dev/posts/4-months-ago-i-posted-my-plan-for-a-web-studio-here-here-s-what-actually-happened--kxipsxrys
og:image: https://api.daily.dev/og/posts/kxIPSXRyS.png
og:image:alt: 4 months ago, I posted my plan for a web studio here. Here's what actually happened.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 4 months ago, I posted my plan for a web studio here. Here's what actually happened.

**[Developer's Journey](https://daily.dev/sources/devjourney)** · [@drakeze](https://daily.dev/drakeze) · 2 min read · 44 upvotes · 9 comments

## Summary

An indie web studio builder recounts three edge-runtime bugs hit while shipping a Next.js 15 monorepo (Turborepo, pnpm, five apps, twelve packages) on Cloudflare Workers via OpenNext. Mongoose's cached singleton connection silently breaks across Worker isolates because sockets are discarded but the connection object survives, fixed by routing through an always-on Fly.io Node service over authorized HTTP. Runtime MDX compilation fails because Workers block eval(), fixed by precompiling MDX to static ASTs and rendering with react-markdown. Uncapped requestAnimationFrame on 120Hz displays doubled canvas animation speed and spun laptop fans, fixed with timestep-scaled physics, a 30fps cap, and IntersectionObserver pausing.

## Content

4 months ago, my first post on here said this:

_There's nothing live yet. No finished product, no clients signed. What I do have is a real plan._

The plan was two site architecture diagrams. I wrote at the time that they were about "what a visitor needs to understand and feel by the time they get to the bottom of a page."

I was planning emotional pacing. Here's what the year was actually about.

**The build:** Next.js 15 through OpenNext on Cloudflare Workers. Five apps, twelve packages, Turborepo on pnpm workspaces. MongoDB, Clerk, Stripe.

**Problem 1 - Mongo connections silently die on Workers.**

Mongoose caches a singleton connection. Locally, it persists across hot reloads so you never think about it. A Worker's isolate discards its TCP sockets when the request ends, but the cached connection object survives. The next request awaits a connection that looks valid and never resolves. You get `Error 1101 Worker threw exception` with no usable trace.

There's no config flag. A serverless isolate can't hold a pool, so something persistent has to:

```
Worker (edge)  →  authorized HTTP  →  Node service (always-on)  →  MongoDB
```

I put a small always-on service on Fly.io that owns the pool, and moved all five apps onto authorized HTTP instead of direct sockets. Costs an extra hop per query. Buys database behavior that doesn't depend on isolate lifecycle.

**Problem 2 - edge isolates block**`eval()`**, which kills runtime MDX.**

`next-mdx-remote` compiles at request time, and that's `eval()` underneath. Every route on my docs site returned 500.

The fix was compiling MDX to static ASTs at build time and rendering with `react-markdown` plus custom AST-walk handlers for callouts and step blocks. Ends up faster than what I originally wanted.

**Problem 3 - uncapped **`requestAnimationFrame`** on high-refresh displays.**

My canvas navigation engine ran at double speed on 120Hz screens and spun laptop fans on page load. Fixed with timestep-scaled physics, a 30fps cap, and an `IntersectionObserver` to pause off-screen. Worth checking if you have canvas work shipped; it looks completely fine on a 60Hz machine.

I'm publishing the whole build chronologically from those two diagrams forward, about 125 posts, including the parts where I was wrong. Full write-up of this one with the reasoning behind each fix:

[My Blog](https://blog.drakeze.com/)

## Community discussion

Top comments from developers on daily.dev.

**@taiwofrancis** · 2 upvotes

> Honestly, the problems and fixes are more interesting than the final product. That’s where the real learning is.

**@agustinbarrientos** · 1 upvotes

> I prefer one observable owner for the Mongo pool across five apps, even if socket reuse in Workers improves

**@bigjpg** · 1 upvotes

> Hey buddy just a little FYI, your blog site is running a few semvars behind the RCEs that specifically affect static sites in Vercel, I would recommend updating your blog domain to match your main site.
>
> Really interesting profile to be honest. I thought you were either a bot or a shill at first, but you've got the right ideas and from what I can see, you're well on your way to success.

## Similar posts on daily.dev

- [Migrating to Workspaces and Nx](https://daily.dev/posts/migrating-to-workspaces-and-nx-vjmaj8bgs) · Kent C. Dodds · 20 upvotes · 0 comments
- [Next.js for the Next Billion Users: Optimizing for High-Latency Markets](https://daily.dev/posts/next-js-for-the-next-billion-users-optimizing-for-high-latency-markets-nbxhqfay2) · SitePoint · 1 upvotes · 0 comments
- [I'm 12. This morning I fought two hosting providers. My app survived both.](https://daily.dev/posts/i-m-12-this-morning-i-fought-two-hosting-providers-my-app-survived-both--idkuxfs1o) · DEV · 2 upvotes · 0 comments
- [From Years of Client Work to a Next.js \+ Sanity Starter Kit](https://daily.dev/posts/from-years-of-client-work-to-a-next-js-sanity-starter-kit-xsgebesso) · Codrops · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#nextjs](https://daily.dev/tags/nextjs), [#serverless](https://daily.dev/tags/serverless), [#mongodb](https://daily.dev/tags/mongodb), [#cloudflare](https://daily.dev/tags/cloudflare)

[View this post on daily.dev](https://daily.dev/posts/4-months-ago-i-posted-my-plan-for-a-web-studio-here-here-s-what-actually-happened--kxipsxrys)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/4-months-ago-i-posted-my-plan-for-a-web-studio-here-here-s-what-actually-happened--kxipsxrys","headline":"4 months ago, I posted my plan for a web studio here. Here's what actually happened.","text":"An indie web studio builder recounts three edge-runtime bugs hit while shipping a Next.js 15 monorepo (Turborepo, pnpm, five apps, twelve packages) on Cloudflare Workers via OpenNext. Mongoose's cached singleton connection silently breaks across Worker isolates because sockets are discarded but the connection object survives, fixed by routing through an always-on Fly.io Node service over authorized HTTP. Runtime MDX compilation fails because Workers block eval(), fixed by precompiling MDX to static ASTs and rendering with react-markdown. Uncapped requestAnimationFrame on 120Hz displays doubled canvas animation speed and spun laptop fans, fixed with timestep-scaled physics, a 30fps cap, and IntersectionObserver pausing.","url":"https://daily.dev/posts/4-months-ago-i-posted-my-plan-for-a-web-studio-here-here-s-what-actually-happened--kxipsxrys","datePublished":"2026-08-28T19:46:19.014Z","dateModified":"2026-09-13T21:12:34.215Z","author":{"@type":"Person","name":"Anthony","url":"https://daily.dev/drakeze","image":"https://media.daily.dev/image/upload/s--11gwAjuC--/f_auto/v1765561095/avatars/avatar_m24lqqCHX4cycLADBIHJ7?_a=BAMAK+ZW0","description":"Full-stack dev | Founder of SorenLab | Building in public | Future polyglot engineer","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":4180}},"image":"https://media.daily.dev/image/upload/s--qnuzU6at--/f_auto/v1787946380/posts/kxIPSXRyS?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":44},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":9}],"comment":[{"@type":"Comment","text":"Honestly, the problems and fixes are more interesting than the final product. That’s where the real learning is.","datePublished":"2026-08-29T02:45:47.474Z","url":"https://daily.dev/posts/kxIPSXRyS#c-9FiRevZeT","author":{"@type":"Person","name":"Francis","url":"https://daily.dev/taiwofrancis","image":"https://media.daily.dev/image/upload/s--Eux7Ia33--/f_auto,pg_1/v1792512435/avatars/avatar_FStpm3ZejUD3qGlEeoOUS?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"I prefer one observable owner for the Mongo pool across five apps, even if socket reuse in Workers improves","datePublished":"2026-08-30T04:41:22.892Z","url":"https://daily.dev/posts/kxIPSXRyS#c-Ci7UGYq25","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Hey buddy just a little FYI, your blog site is running a few semvars behind the RCEs that specifically affect static sites in Vercel, I would recommend updating your blog domain to match your main site.\nReally interesting profile to be honest. I thought you were either a bot or a shill at first, but you’ve got the right ideas and from what I can see, you’re well on your way to success.","datePublished":"2026-09-01T13:30:39.304Z","url":"https://daily.dev/posts/kxIPSXRyS#c-UhZzYpdTn","author":{"@type":"Person","name":"Ross Farrell","url":"https://daily.dev/bigjpg","image":"https://avatars.githubusercontent.com/u/56429528?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/devjourney","name":"Developer's Journey"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Developer's Journey","item":"https://daily.dev/squads/devjourney"},{"@type":"ListItem","position":3,"name":"4 months ago, I posted my plan for a web studio here. Here's what actually happened."}]}
```

