* Gracefully shut down the server.
()
| 99 | * Gracefully shut down the server. |
| 100 | */ |
| 101 | async stop(): Promise<void> { |
| 102 | if (this._server) { |
| 103 | await this._server.stop(true); |
| 104 | this._logger.info("HTTP server stopped"); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | private _setupStaticServing(): void { |
| 109 | if (Bun.env.NODE_ENV === "production") { |