Optionalmiddlewares?: Middleware[]An array of middlewares to be applied to the server. Middlewares are executed in the order they are provided.
Optionalport?: numberThe port number on which the server should listen.
An array of routes or route namespaces. Routes define the HTTP endpoints served by the server.
Optionalwebsocket?: WebSocketHandler<WebsocketDataType> & { Websocket default Bun options with additional upgrade options allowing to pass headers and data. When upgrade is provided, the websocket handler will be called with the provided headers and data.
Options for configuring the server.