New enterprise feature

This commit is contained in:
Urtzi Alfaro
2025-11-30 09:12:40 +01:00
parent f9d0eec6ec
commit 972db02f6d
176 changed files with 19741 additions and 1361 deletions

View File

@@ -50,6 +50,8 @@ export default defineConfig(({ mode }) => {
},
build: {
outDir: 'dist',
// For production builds: ensure assets have correct paths
// Base path should be '/' for root deployment
// In development mode: inline source maps for better debugging
// In production mode: external source maps
sourcemap: isDevelopment ? 'inline' : true,
@@ -66,6 +68,15 @@ export default defineConfig(({ mode }) => {
charts: ['recharts'],
forms: ['react-hook-form', 'zod'],
},
// Ensure assets are placed in assets directory with proper names
assetFileNames: (assetInfo) => {
if (assetInfo.name.endsWith('.css')) {
return 'assets/[name].[hash].[ext]';
}
return 'assets/[name].[hash].[ext]';
},
chunkFileNames: 'assets/[name].[hash].js',
entryFileNames: 'assets/[name].[hash].js',
},
},
},