Resolve production errors and improve system stability and reliability

Fix critical production errors, including Bad Gateway issues and TypeScript compilation failures, by implementing comprehensive route registration, correcting service configurations, and ensuring production build success.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7c468936-2a88-4686-ac0a-84921a45222d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/7c468936-2a88-4686-ac0a-84921a45222d/cH9Kvea
This commit is contained in:
michaelschal committed 2025-08-13 13:00:39 +00:00
1 parent d128c721e8
commit 1745e73b52
5 files changed
+34 -99

No files matched your search

+3 -3
View File
@@ -259,7 +259,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
console.log('✅ Supplier creation successful:', { id: supplier.id, name: supplier.name });
res.json(supplier);
} catch (error) {
} catch (error: any) {
console.error('❌ Failed to create supplier:', {
error: (error as Error).message,
stack: error.stack,
@@ -442,7 +442,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
});
res.json(order);
} catch (error) {
} catch (error: any) {
console.error("❌ Error creating order:", {
error: (error as Error).message,
stack: error.stack,
@@ -752,7 +752,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
// Auto-valider le rapprochement
await storage.updateDelivery(id, {
reconciled: true,
validatedAt: new Date().toISOString()
validatedAt: new Date()
});
console.log(`✅ Auto-reconciliation: Delivery #${id} automatically validated for supplier ${supplier.name}`);