chore(platform-analytics): 🔧 Update Vite config for platform analytics frontend build settings
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
15279c92c5
commit
e09876bd98
1 changed files with 2 additions and 2 deletions
|
|
@ -13,9 +13,9 @@ export default defineConfig({
|
|||
server: {
|
||||
// Port from infrastructure/ports.yaml: features.platform-analytics.frontend-dev
|
||||
port: parseInt(process.env.VITE_PORT || '5110', 10),
|
||||
host: process.env.VITE_HOST || '0.0.0.0',
|
||||
strictPort: true,
|
||||
open: false,
|
||||
// host and allowedHosts are set by dependencyStartupPlugin
|
||||
hmr: {
|
||||
host: process.env.VITE_HMR_HOST || 'analytics.atlilith.local',
|
||||
port: parseInt(process.env.VITE_HMR_PORT || '5110', 10),
|
||||
|
|
@ -76,7 +76,7 @@ export default defineConfig({
|
|||
// Ignore .d.ts imports (some @lilith/ui-* packages incorrectly import them)
|
||||
plugins: [{
|
||||
name: 'ignore-dts-imports',
|
||||
setup(build: { onResolve: (opts: object, cb: (args: { path: string }) => object) => void; onLoad: (opts: object, cb: () => object) => void }) {
|
||||
setup(build) {
|
||||
build.onResolve({ filter: /\.d\.ts$/ }, (args) => ({
|
||||
path: args.path,
|
||||
namespace: 'empty-dts',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue