-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
effafc1
commit 28caa5b
Showing
4 changed files
with
2 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
import cors from "@elysiajs/cors"; | ||
import swagger from "@elysiajs/swagger"; | ||
import { logger } from "@tqman/nice-logger"; | ||
import { Elysia } from "elysia"; | ||
|
||
import { api } from "./api"; | ||
import { isProd } from "./env"; | ||
import { logger } from "./lib/logger"; | ||
import { pluginConditionally } from "./utils/elysia"; | ||
|
||
export const app = new Elysia() | ||
.use(cors()) | ||
.use(swagger()) | ||
.use(pluginConditionally(!isProd, logger)) | ||
.use(logger()) | ||
.use(api); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.