revert: 2972a140b902214818a34756bcca3a2d070fdd58

This commit is contained in:
2026-04-03 13:36:48 +07:00 Unverified
parent 2972a140b9
commit 968a8d016e
+8 -3
View File
@@ -8,9 +8,6 @@ import { v1routes } from "./v1";
const log = createLogger("APP");
const app = new Elysia()
.onError(({ error }) => {
console.error(error);
})
.use(
openapi({
exclude: { paths: ["/", "/health"] },
@@ -46,3 +43,11 @@ v1routes(app);
export type App = typeof app;
log`Serving ${app.server?.hostname}:${app.server?.port}`;
process.on("unhandledRejection", (reason) => {
console.error(reason);
});
process.on("uncaughtException", (err) => {
console.error(err);
});