From a3c24fbb9e7202d2fefe9192fbfd3b5fe6679bd5 Mon Sep 17 00:00:00 2001 From: Lilith Date: Sun, 22 Feb 2026 08:26:51 -0800 Subject: [PATCH] =?UTF-8?q?chore(frontend-public):=20=F0=9F=94=A7=20Update?= =?UTF-8?q?=20Vite=20build=20config=20for=20public=20frontend=20optimizati?= =?UTF-8?q?ons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- features/landing/frontend-public/vite.config.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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',