🔧 Fix backend health check by correcting duplicate function call and improving readability

This commit is contained in:
2026-01-30 05:00:05 +00:00
parent cd67421c5f
commit aa4648027f

View File

@@ -251,7 +251,11 @@ async function deployLocal(config) {
if (!frontendHealthy) throw new Error('Frontend health check failed');
console.log(' ✅ Frontend healthy');
const backendHealthy = await healthCheck('localhost', config.backendPort, '/health');
const backendHealthy = await healthCheck(
'localhost',
config.backendPort,
'/health'
);
const backendHealthy = await healthCheck('localhost', config.backendPort);
// Backend might need more time
if (!backendHealthy) throw new Error('Backend health check failed');