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(dashboard-tokens): load the fees panel by variable so the page stops 500ing in dev

nirholas88b6f5349c73
diff --git a/src/dashboard-next/pages/tokens.js b/src/dashboard-next/pages/tokens.js
index 7a20d34fc..dd9001389 100644
--- a/src/dashboard-next/pages/tokens.js
+++ b/src/dashboard-next/pages/tokens.js
@@ -351,7 +351,14 @@ async function openFeesModal({ mint, network, creator, agentId, symbol, name })
head.querySelector('button').focus();
try {
const user = await getMe();
- const { mountFeesPanel } = await import(/* @vite-ignore */ '/studio/fees-panel.js');
+ // The panel is a public/ asset loaded by URL, not a bundled module. Vite
+ // rejects a literal public path even behind @vite-ignore, because its
+ // public-dir guard reads the specifier before the comment is honored:
+ // the whole module then 500s in dev and this page renders blank. Holding
+ // the URL in a variable is what the other callers of this panel do, and
+ // it leaves the specifier unanalyzable, so dev and build agree.
+ const feesPanelUrl = '/studio/fees-panel.js';
+ const { mountFeesPanel } = await import(/* @vite-ignore */ feesPanelUrl);
mountFeesPanel(inner, {
mint, network: network || 'mainnet', creator: creator || null,
agentId: agentId || null, symbol: symbol || '', name: name || '',