Closed Yon-Kyle closed 8 months ago
How do you think, what if we instead added a callback option into the method, and let the user take care of the logging (if they need that)?
E.g.:
listen: (port = 3000, secret = '', callback) => {
return micro(handler(secret)).listen(port, callback)
}
Great idea!
Done!
Amazing!
Enhanced server error handling and logging: Modified the listen function in the @nexrender/server library to handle and log errors if the server fails to start. Also added console logging for successful server start with the port number