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:
parent
b07c0c4eea
commit
d62478452e
2 changed files with 8 additions and 4 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue