From 6caf69246fac5365461feb0b76412d1ac5db3915 Mon Sep 17 00:00:00 2001 From: royalpinto007 Date: Wed, 1 Jul 2026 11:25:59 +0530 Subject: [PATCH] docs: clarify local dev memory options --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 40118f75503..2fec077d319 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,23 @@ cd packages/db && bun run db:migrate bun run dev:full # Starts Next.js app and realtime socket server ``` -Or run separately: `bun run dev` (Next.js) and `cd apps/sim && bun run dev:sockets` (realtime). +If your machine is memory-constrained or `dev:full` appears stuck, use the capped or minimal +registry variants: + +```bash +bun run dev:full:capped # Caps the Next.js dev server heap at 4GB +bun run dev:full:minimal-registry # Loads the smaller block registry during local development +``` + +Or run the servers separately in two terminals: + +```bash +cd apps/sim && bun run dev # Next.js app +cd apps/realtime && bun run dev # Realtime socket server +``` + +If the Next.js dev server keeps reusing a bad cache, clear it once with +`cd apps/sim && bun run dev:clean`, then start the dev server again. ## Chat API Keys