Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

458 B
Raw Blame
diff --git a/src/server/index.js b/src/server/index.js
index 67d7345..8730fc8 100644
--- a/src/server/index.js
+++ b/src/server/index.js
@@ -128,9 +128,11 @@ if (world.assetsDir) {
     },
   })
 }
+const maxUploadBytes = (parseInt(process.env.PUBLIC_MAX_UPLOAD_SIZE, 10) || 16) * 1024 * 1024
 fastify.register(multipart, {
   limits: {
-    fileSize: 200 * 1024 * 1024, // 200MB
+    fileSize: maxUploadBytes,
+    files: 1,
   },
 })
 fastify.register(ws)