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.

build: speed up vercel — parallel club assets, 2× bundle-api batch, drop npm dedupe

nirholas5f0fd1f9688a
diff --git a/public/features.json b/public/features.json
index 37cb2b00e..f96642bd1 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-05-29T00:49:53.925Z",
+ "generated_at": "2026-05-29T01:17:20.019Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/scripts/build-vercel.mjs b/scripts/build-vercel.mjs
index 78aaf4241..4fb31f571 100644
--- a/scripts/build-vercel.mjs
+++ b/scripts/build-vercel.mjs
@@ -61,7 +61,9 @@ async function prebuild() {
run('build:news', 'node scripts/build-news.mjs'),
run('build:skill-metadata', 'node scripts/build-skill-metadata.mjs'),
run('build:local-skill-packs', 'node scripts/build-local-skill-packs.mjs'),
- run('build:club-assets', '(node scripts/build-club-props.mjs & node scripts/build-club-venue.mjs & node scripts/build-club-hdri.mjs & wait)'),
+ run('build:club-props', 'node scripts/build-club-props.mjs'),
+ run('build:club-venue', 'node scripts/build-club-venue.mjs'),
+ run('build:club-hdri', 'node scripts/build-club-hdri.mjs'),
]);
await run('build:page-index', 'node scripts/build-page-index.mjs && node scripts/audit-page-index.mjs');
}
@@ -73,7 +75,7 @@ async function buildLib() {
async function buildApp() {
await run('build:app', 'npx vite build && node scripts/strip-sw-from-embeds.mjs', {
- env: { NODE_OPTIONS: '--max-old-space-size=6144' },
+ env: { NODE_OPTIONS: '--no-deprecation --max-old-space-size=6144' },
});
}
@@ -82,9 +84,8 @@ async function bundleApi() {
}
async function postBuild() {
- await run('copy-avatar-studio', 'node scripts/copy-avatar-studio.mjs');
-
await Promise.all([
+ run('copy-avatar-studio', 'node scripts/copy-avatar-studio.mjs'),
run('publish:lib', 'node scripts/publish-lib.mjs'),
run('apply:r2-cors', "node scripts/set-r2-cors.mjs || echo '[apply:r2-cors] skipped'"),
]);
diff --git a/scripts/bundle-api.mjs b/scripts/bundle-api.mjs
index ce7877f60..154652cf0 100644
--- a/scripts/bundle-api.mjs
+++ b/scripts/bundle-api.mjs
@@ -82,7 +82,7 @@ const EXTERNALS = [
const start = Date.now();
const routeFiles = await collectRouteFiles(API_DIR);
-const BATCH_SIZE = 10;
+const BATCH_SIZE = 20;
const totalBatches = Math.ceil(routeFiles.length / BATCH_SIZE);
console.log(`[bundle-api] Bundling ${routeFiles.length} route files in ${totalBatches} batches...`);
diff --git a/vercel.json b/vercel.json
index 9b18ba156..84f8ce8d1 100644
--- a/vercel.json
+++ b/vercel.json
@@ -2,7 +2,7 @@
"buildCommand": "npm run build:vercel",
"outputDirectory": "dist",
"public": true,
- "installCommand": "npm install --prefer-offline --no-audit --no-fund && npm dedupe --prefer-offline 2>/dev/null || true",
+ "installCommand": "npm install --prefer-offline --no-audit --no-fund",
"env": {
"NODE_OPTIONS": "--no-deprecation"
},