diff --git a/features/platform-analytics/frontend-platform/vite.config.ts b/features/platform-analytics/frontend-platform/vite.config.ts index d549e7897..30633b539 100644 --- a/features/platform-analytics/frontend-platform/vite.config.ts +++ b/features/platform-analytics/frontend-platform/vite.config.ts @@ -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'), diff --git a/features/video-studio/frontend-demo/vite.config.ts b/features/video-studio/frontend-demo/vite.config.ts index d04446bff..3e20651a2 100644 --- a/features/video-studio/frontend-demo/vite.config.ts +++ b/features/video-studio/frontend-demo/vite.config.ts @@ -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: {