mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 19:52:09 +01:00
fix: resolve all TypeScript compilation errors and enable production build
- Fixed missing type imports in lib/api/index.ts - Updated Zod error property from 'errors' to 'issues' for compatibility - Added missing lru-cache dependency for performance caching - Fixed LRU Cache generic type constraints for TypeScript compliance - Resolved Map iteration ES5 compatibility issues using Array.from() - Fixed Redis configuration by removing unsupported socket options - Corrected Prisma relationship naming (auditLogs vs securityAuditLogs) - Applied type casting for missing database schema fields - Created missing security types file for enhanced security service - Disabled deprecated ESLint during build (using Biome for linting) - Removed deprecated critters dependency and disabled CSS optimization - Achieved successful production build with all 47 pages generated
This commit is contained in:
@ -455,8 +455,8 @@ export class DeploymentOrchestrator {
|
||||
migrationLogger.info("BATCH_TEST", "Testing batch processing system");
|
||||
|
||||
// Test that batch processing components can be imported
|
||||
const { BatchProcessor } = await import("../../lib/batchProcessor");
|
||||
return BatchProcessor !== undefined;
|
||||
const { createBatchRequest } = await import("../../lib/batchProcessor");
|
||||
return createBatchRequest !== undefined;
|
||||
} catch (error) {
|
||||
migrationLogger.error(
|
||||
"BATCH_TEST",
|
||||
@ -478,7 +478,7 @@ export class DeploymentOrchestrator {
|
||||
|
||||
if (!result.success) {
|
||||
throw new Error(
|
||||
`Post-deployment validation failed: ${result.errors.join(", ")}`
|
||||
`Post-deployment validation failed: ${result.failedChecks} checks failed out of ${result.checks.length} total checks`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user