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.

fix(assets): accept R2_ENDPOINT as the storage endpoint so asset scripts run from a plain .env.local

nirholas0e66c11373a1
diff --git a/scripts/lib/asset-r2.mjs b/scripts/lib/asset-r2.mjs
index c0bc36e26..31fe13dc9 100644
--- a/scripts/lib/asset-r2.mjs
+++ b/scripts/lib/asset-r2.mjs
@@ -23,7 +23,7 @@ export function loadEnvVar(key) {
return null;
}
-export const S3_ENDPOINT = loadEnvVar('S3_ENDPOINT') ||
+export const S3_ENDPOINT = loadEnvVar('S3_ENDPOINT') || loadEnvVar('R2_ENDPOINT') ||
(loadEnvVar('R2_ACCOUNT_ID') ? `https://${loadEnvVar('R2_ACCOUNT_ID')}.r2.cloudflarestorage.com` : null);
export const S3_ACCESS_KEY_ID = loadEnvVar('S3_ACCESS_KEY_ID') || loadEnvVar('R2_ACCESS_KEY_ID');
export const S3_SECRET_ACCESS_KEY = loadEnvVar('S3_SECRET_ACCESS_KEY') || loadEnvVar('R2_SECRET_ACCESS_KEY');