diff --git a/features/frontend-showcase/frontend/vite.config.ts b/features/frontend-showcase/frontend/vite.config.ts index 8215fc0f0..4ceafcb71 100755 --- a/features/frontend-showcase/frontend/vite.config.ts +++ b/features/frontend-showcase/frontend/vite.config.ts @@ -2,10 +2,12 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import path from 'path'; import { devLocaleApiPlugin } from '../../../@packages/@utils/vite-plugin-dev-locale-api/src'; +import { lilithVite } from '@lilith/build-core'; export default defineConfig({ plugins: [ react(), + lilithVite(), // Dev locale API for WYSIWYG content editing devLocaleApiPlugin({ localeDirs: [ diff --git a/features/marketplace/frontend-public/vite.config.ts b/features/marketplace/frontend-public/vite.config.ts index 90f9f2349..ec81865b0 100755 --- a/features/marketplace/frontend-public/vite.config.ts +++ b/features/marketplace/frontend-public/vite.config.ts @@ -68,7 +68,6 @@ export default defineConfig({ }, server: { host: '0.0.0.0', - allowedHosts: ['.local', 'localhost'], proxy: { '/api': { target: 'http://localhost:3001', diff --git a/features/platform-content-tools/frontend-dev/vite.config.ts b/features/platform-content-tools/frontend-dev/vite.config.ts index a17935832..d974c2d8a 100644 --- a/features/platform-content-tools/frontend-dev/vite.config.ts +++ b/features/platform-content-tools/frontend-dev/vite.config.ts @@ -158,7 +158,7 @@ export default defineConfig({ }, server: { port: devPort, - allowedHosts: ['.local', 'localhost', '127.0.0.1', 'platform-content-tools'], + allowedHosts: ['platform-content-tools'], proxy: { // SEO admin API '/api/seo': { diff --git a/features/profile/frontend-app/vite.config.ts b/features/profile/frontend-app/vite.config.ts index 0dc64b127..c5a2c6f1c 100755 --- a/features/profile/frontend-app/vite.config.ts +++ b/features/profile/frontend-app/vite.config.ts @@ -2,10 +2,12 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import { resolve } from 'path'; import { versionPlugin } from '../../../@packages/@utils/vite-version-plugin/src'; +import { lilithVite } from '@lilith/build-core'; export default defineConfig({ plugins: [ react(), + lilithVite(), versionPlugin({ appName: 'Profile App' }), ], resolve: { diff --git a/features/status-dashboard/frontend-public/vite.config.ts b/features/status-dashboard/frontend-public/vite.config.ts index f396de543..2a98f52e0 100755 --- a/features/status-dashboard/frontend-public/vite.config.ts +++ b/features/status-dashboard/frontend-public/vite.config.ts @@ -3,6 +3,7 @@ import react from '@vitejs/plugin-react'; import path from 'path'; // Direct import for vite config (aliases not available at config load time) import { versionPlugin } from '../../../@packages/@utils/vite-version-plugin/src'; +import { lilithVite } from '@lilith/build-core'; export default defineConfig(({ mode }) => { const env = loadEnv(mode, __dirname, ''); @@ -10,6 +11,7 @@ export default defineConfig(({ mode }) => { return { plugins: [ react(), + lilithVite(), versionPlugin({ appName: 'Status Dashboard Public', }), @@ -19,8 +21,6 @@ export default defineConfig(({ mode }) => { host: '0.0.0.0', // Port from infrastructure/ports.yaml: features.status-dashboard.frontend-dev port: parseInt(env.VITE_PORT || '3000', 10), - // Allow requests from .local domains - allowedHosts: ['.local', 'localhost', '127.0.0.1'], proxy: { '/api': { // Port from infrastructure/ports.yaml: features.status-dashboard.web