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.

vite.config.js: guard statSync with try-catch to handle files deleted mid-walk

nirholas692a25bca38f
diff --git a/vite.config.js b/vite.config.js
index 622cf0946..379907913 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -601,7 +601,9 @@ const appConfig = {
const walk = (dir) => {
for (const entry of readdirSync(dir)) {
const full = join(dir, entry);
- if (statSync(full).isDirectory()) walk(full);
+ let stat;
+ try { stat = statSync(full); } catch { continue; }
+ if (stat.isDirectory()) walk(full);
else if (entry.endsWith('.html')) {
const html = readFileSync(full, 'utf8');
let next = html.replace(LEGACY, '');