💥 breaking: upgrade Elysia to v1.4 and update codebase accordingly

This commit is contained in:
2026-03-07 13:41:13 +07:00
parent c992314cf1
commit 0b786206e4
15 changed files with 352 additions and 287 deletions

View File

@ -3,6 +3,7 @@
import openapi from "@elysiajs/openapi";
import { middleware } from "./middleware";
import { validateEnv } from "./utils/startups/validateEnv";
import { openAPIConfig } from "./config/documentation/openAPI";
validateEnv();
@ -18,19 +19,7 @@ async function bootstrap() {
new Elysia()
.use(middleware)
.use(routes)
.use(
openapi({
documentation: {
tags: [
{
name: "Internal",
description:
"Endpoints for internal use only, not exposed to public API consumers.",
},
],
},
}),
)
.use(openapi(openAPIConfig))
.listen(process.env.APP_PORT || 3000);
console.log(