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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(build): resolve /i18n.js as an external entry so wired pages build
nirholasec1c7e297b24
diff --git a/vite.config.js b/vite.config.jsindex f46d804d4..0b82a463a 100644--- a/vite.config.js+++ b/vite.config.js@@ -682,6 +682,24 @@ support: resolve(__dirname, 'pages/support.html'),},},plugins: [+ // Resolve the shared runtime i18n entry as an EXTERNAL script. Many static+ // pages load the locale runtime via `<script type="module" src="/i18n.js">`+ // (injected by scripts/i18n-annotate.mjs --wire). That path is emitted at the+ // dist root by the `i18n` rollupOptions.input entry (see entryFileNames+ // above), so it exists at runtime. Without this, Vite's build tries to+ // resolve `/i18n.js` as an on-disk module while processing each page's HTML+ // and fails ("Failed to resolve /i18n.js from pages/<page>.html"), breaking+ // the whole build for every wired page. Marking it external leaves the tag+ // untouched in the output HTML and lets the emitted chunk serve it. Applies+ // only to the exact absolute path so nothing else is affected.+ {+ name: 'threews-i18n-external-entry',+ enforce: 'pre',+ resolveId(source) {+ if (source === '/i18n.js') return { id: '/i18n.js', external: true };+ return null;+ },+ },// Strip the VitePWA service-worker registration <script> from any// page meant to be embedded in a third-party iframe. Without this,// the slim /widget shell — loaded under arbitrary origins as an