chore(config): 🔧 Update Vite build configs in frontend-admin and frontend-dev with plugins, path aliases, or environment settings adjustments

This commit is contained in:
Lilith 2026-01-26 00:53:06 -08:00
parent b07c0c4eea
commit d62478452e
2 changed files with 8 additions and 4 deletions

View file

@ -13,9 +13,11 @@ import { pnpmResolve } from '@lilith/vite-plugin-pnpm-resolve';
// =============================================================================
const __dirname = dirname(fileURLToPath(import.meta.url));
const projectRoot = join(__dirname, '../../../..');
// Build deployment registry
// Use env var when available (./run dev sets it), fallback to __dirname for direct pnpm dev
const projectRoot = process.env.LILITH_PROJECT_ROOT || join(__dirname, '../../../..');
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT or calculated from __dirname
const registry = buildDeploymentRegistry({
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),

View file

@ -13,9 +13,11 @@ import { pnpmResolve } from '@lilith/vite-plugin-pnpm-resolve';
// =============================================================================
const __dirname = dirname(fileURLToPath(import.meta.url));
const projectRoot = join(__dirname, '../../../..');
// Build deployment registry
// Use env var when available (./run dev sets it), fallback to __dirname for direct pnpm dev
const projectRoot = process.env.LILITH_PROJECT_ROOT || join(__dirname, '../../../..');
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT or calculated from __dirname
const registry = buildDeploymentRegistry({
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),