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(vite): serve graduated dashboard pages in dev instead of the SPA Overview

nirholas0faa4416fc38
diff --git a/vite.config.js b/vite.config.js
index 06494af40..99feed271 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -2062,11 +2062,20 @@ const appConfig = {
// /dashboard/<tab> and /dashboard/edit/<id> → pages/dashboard-next/index.html (new SPA)
else if (
!filePath &&
- // `billing` left out on purpose: /dashboard/billing is a real
- // dashboard-next page (pages/dashboard-next/billing.html), not a
- // legacy SPA tab.
+ // A slug that owns a real pages/dashboard-next/<slug>.html is NOT a
+ // legacy SPA tab: prod (vercel.json) routes it to that file, so dev
+ // must fall through to the /dashboard/<page> rule below or the page
+ // only exists in production. `account`, `agents` and `widgets` all
+ // graduated out of the SPA and were still listed here, which served
+ // the Overview page in dev under their URLs.
/^\/dashboard\/(?:agents|avatars|create|upload|animations|widgets|embed|keys|mcp|monetization|payments|subscriptions|revenue|withdrawals|earnings|account)\/?$/.test(
path,
+ ) &&
+ !existsSync(
+ resolve(
+ root,
+ `pages/dashboard-next/${path.replace(/^\/dashboard\//, '').replace(/\/$/, '')}.html`,
+ ),
)
)
filePath = resolve(root, 'pages/dashboard-next/index.html');