revert: 2972a140b902214818a34756bcca3a2d070fdd58
This commit is contained in:
+8
-3
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user