Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review: raise body limit to 55mb so Zod cap is the binding constraint
[._.]/ Adam Eivy84cdd117615e
diff --git a/server/index.js b/server/index.jsindex 1740b6073f..f1902b1bf1 100644--- a/server/index.js+++ b/server/index.js@@ -202,8 +202,10 @@ app.use((req, res, next) => {if (req.method === 'OPTIONS') return res.sendStatus(204);next();});-app.use(express.json({ limit: '50mb' }));-app.use(express.urlencoded({ limit: '50mb', extended: true }));+// Body limit is set slightly above the 50MB combined base64 cap enforced by sendMessageSchema+// so the Zod validation (not the body parser) is the binding constraint for attachment payloads.+app.use(express.json({ limit: '55mb' }));+app.use(express.urlencoded({ limit: '55mb', extended: true }));// Make io available to routesapp.set('io', io);diff --git a/server/routes/openclaw.test.js b/server/routes/openclaw.test.jsindex 2400fa3da0..13f8ee0eac 100644--- a/server/routes/openclaw.test.js+++ b/server/routes/openclaw.test.js@@ -38,8 +38,8 @@ describe('OpenClaw Routes', () => {beforeEach(() => {app = express();- // Match the 50mb body limit used in production (server/index.js)- app.use(express.json({ limit: '50mb' }));+ // Match the 55mb body limit used in production (server/index.js)+ app.use(express.json({ limit: '55mb' }));app.use('/api/openclaw', openclawRoutes);vi.clearAllMocks();});