From cf507b860b2e4bc2020d2d25172481f4e61a3fbb Mon Sep 17 00:00:00 2001 From: Lilith Date: Wed, 21 Jan 2026 21:23:33 -0800 Subject: [PATCH] =?UTF-8?q?chore(feature-flags/frontend-admin):=20?= =?UTF-8?q?=F0=9F=94=A7=20Update=20Vite=20build=20config=20for=20admin=20f?= =?UTF-8?q?eature=20flag=20handling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend-admin/vite.config.js | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/features/feature-flags/frontend-admin/vite.config.js b/features/feature-flags/frontend-admin/vite.config.js index 9decec36c..e409afffa 100755 --- a/features/feature-flags/frontend-admin/vite.config.js +++ b/features/feature-flags/frontend-admin/vite.config.js @@ -2,20 +2,32 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import path from 'path'; import { versionPlugin } from '../../../@packages/@utils/vite-version-plugin/src'; +import { dependencyStartupPlugin } from '@lilith/vite-plugin-dependency-startup'; export default defineConfig({ plugins: [ + dependencyStartupPlugin({ feature: 'feature-flags' }), react(), versionPlugin({ appName: 'Feature Flags Admin' }), ], resolve: { - alias: { - }, + alias: [ + { + find: '@', + replacement: path.resolve(__dirname, './src'), + }, + { + find: '@', + replacement: path.resolve(__dirname, '../shared/src'), + }, + ], }, server: { - port: 5190, + // Port from infrastructure/ports.yaml: features.feature-flags.frontend-dev + port: parseInt(process.env.VITE_PORT || '5190', 10), proxy: { '/api': { - target: 'http://localhost:3090', + // Port from infrastructure/ports.yaml: features.feature-flags.api + target: process.env.VITE_API_URL || 'http://localhost:3090', changeOrigin: true, }, },