chore(frontend): 🔧 Update Vite build configurations for platform-analytics and video-studio features

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-03-18 21:36:52 -07:00
parent a206ce7b38
commit 4e4b3fd817
2 changed files with 17 additions and 1 deletions

View file

@ -24,7 +24,7 @@ export default defineConfig({
proxy: {
'/api': {
// Analytics API backend (port from infrastructure/ports.yaml)
target: process.env.VITE_API_URL || 'http://localhost:3012',
target: process.env.VITE_API_URL || 'http://localhost:4110',
changeOrigin: true,
},
},
@ -37,6 +37,16 @@ export default defineConfig({
alias: {
// Deduplicate styled-components to prevent dual-instance ThemeProvider breakage
'styled-components': path.resolve(__dirname, '../../../node_modules/styled-components'),
// @lilith/api-client: source-only package (no build step, exports from src)
'@lilith/api-client': path.resolve(__dirname, '../../../@packages/@infrastructure/api-client/src'),
// lucide-react: fix dangling bun store symlink by resolving directly to bun store
// The workspace symlink for lucide-react points to a stale bun store hash
'lucide-react': path.resolve(__dirname, '../../../../node_modules/.bun/lucide-react@0.553.0+b1ab299f0a400331/node_modules/lucide-react'),
// @lilith/ui-core, ui-glassmorphism, ui-animated: not hoisted to root node_modules
// (bun nested them as transitive deps) — resolve directly to bun store
'@lilith/ui-core': path.resolve(__dirname, '../../../../node_modules/.bun/@lilith+ui-core@1.1.2+9fadf76168fba396/node_modules/@lilith/ui-core'),
'@lilith/ui-glassmorphism': path.resolve(__dirname, '../../../../node_modules/.bun/@lilith+ui-glassmorphism@1.1.6+5a186b154ee5cdad/node_modules/@lilith/ui-glassmorphism'),
'@lilith/ui-animated': path.resolve(__dirname, '../../../../node_modules/.bun/@lilith+ui-animated@1.1.7+4bf8be1179cfec09/node_modules/@lilith/ui-animated'),
'@': path.resolve(__dirname, './src'),
'@packages': path.resolve(__dirname, '../../../@packages'),
'@features/i18n': path.resolve(__dirname, '../../i18n'),

View file

@ -8,6 +8,12 @@ export default defineConfig({
alias: {
'@': path.resolve(__dirname, './src'),
'@vs-live': path.resolve(__dirname, '../frontend-live/src'),
// @lilith/service-registry reads YAML from disk via Node.js fs/path —
// replace it with a browser-safe shim for the demo Vite build.
'@lilith/service-registry': path.resolve(
__dirname,
'./src/shims/service-registry.ts',
),
},
},
server: {