Login-template builds hit Cloudflare's 128 MB limit after a stale prebuilt cache
minibuildai compiles each generated app inside a Cloudflare Durable Object, which enforces a hard 128 MB memory cap. Login templates with better-auth and kysely peaked near 500 MB when installed and bundled live, causing the isolate to reset before deployment. To avoid this, the team prebuilt the login-template bundle offline, about 1.9 MB, and deploys matching a content hash reuse it. A pipeline change later regenerated template archives without rebuilding the artifacts, so every hash missed and silently fell back to the failing live path. A controlled test with a fresh login-template project confirmed the template itself was failing, which pointed to the mismatch. The fix rebuilds and verifies artifacts in the same step as archive regeneration, so mismatched artifacts cannot ship.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in