fix: prevent backend from crashing on unhandled errors to diagnose restart loop
This commit is contained in:
@@ -6,7 +6,7 @@ const connectDB = async () => {
|
||||
console.log(`MongoDB Connected: ${conn.connection.host}`);
|
||||
} catch (error) {
|
||||
console.error(`Error: ${error.message}`);
|
||||
process.exit(1);
|
||||
// process.exit(1);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user