fix: enhance Redis connection handling and improve error logging in API startup

This commit is contained in:
Rotimi Best
2026-03-11 12:57:44 +01:00
parent ff1d4a2749
commit cd470b5d05
5 changed files with 34 additions and 12 deletions
+1 -2
View File
@@ -11,9 +11,8 @@ import { showRoutes } from 'hono/dev';
async function startServer() {
console.log('Starting server on port:', API_PORT);
// Connect to Redis before starting the server
// Connect to Redis (non-blocking: API starts even if Redis fails)
await connectRedis();
console.log('Redis connected successfully');
serve({ fetch: app.fetch, port: API_PORT });