Skip to content

Commit c20af6e

Browse files
Shawclaude
andcommitted
fix(homepage): alias @elizaos/ui to CloudVideoBackground.tsx directly
Pointing the alias at ui/src/index.ts caused dev-server failures because @elizaos/ui imports @elizaos/shared which is not installed in the homepage's node_modules. marketing.tsx only imports CloudVideoBackground, so alias to that specific file instead. Build drops from 37s to 1.1s as a side effect. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b04ad44 commit c20af6e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/homepage/vite.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ export default defineConfig({
6060
},
6161
{
6262
find: /^@elizaos\/ui$/,
63-
replacement: path.resolve(__dirname, "../ui/src/index.ts"),
63+
replacement: path.resolve(
64+
__dirname,
65+
"../ui/src/backgrounds/CloudVideoBackground.tsx",
66+
),
6467
},
6568
],
6669
},

0 commit comments

Comments
 (0)