diff --git a/features/landing/frontend-public/vite.config.ts b/features/landing/frontend-public/vite.config.ts index 4938de2cc..46cb9ca56 100755 --- a/features/landing/frontend-public/vite.config.ts +++ b/features/landing/frontend-public/vite.config.ts @@ -52,8 +52,8 @@ export default defineConfig({ }, }, fs: { - // Allow serving files from pnpm workspace - allow: ['..'], + // Allow serving files from workspace (.. = landing/, ../.. = features/, ../../.. = codebase/) + allow: ['../../..'], }, }, optimizeDeps: { @@ -81,8 +81,11 @@ export default defineConfig({ '@deployment-locales': path.resolve(__dirname, '../../../@deployments/atlilith.www/locales'), // Deployment locale manifest (fallback to atlilith.www when feature runs standalone) '@deployment-locale-manifest': path.resolve(__dirname, '../../../../deployments/@domains/atlilith.www/root/src/locale-manifest.ts'), + // Cross-feature imports (mirrors tsconfig @features/* path) + '@features': path.resolve(__dirname, '../..'), // Feature shared modules '@platform/i18n': path.resolve(__dirname, '../../i18n'), + '@platform/feature-flags/react': path.resolve(__dirname, '../../feature-flags/shared/dist/react.js'), // @ui/* aliases - map to installed @lilith/ui-* packages from registry // NO source path references to ~/Code/@packages/ allowed '@ui/theme': '@lilith/ui-theme',