main
Ethan Niser 2023-09-14 19:52:49 -05:00
parent 9ebac2e437
commit 22d6c2207a
3 changed files with 12 additions and 12 deletions

Binary file not shown.

@ -1,24 +1,24 @@
import { Elysia } from "elysia";
import { logger } from "@bogeychan/elysia-logger";
import pretty from "pino-pretty";
// import { logger } from "@bogeychan/elysia-logger";
// import pretty from "pino-pretty";
import { config } from "../config";
import { db } from "../db";
import "@kitajs/html/register";
import "@kitajs/html/htmx";
const stream = pretty({
colorize: true,
});
// const stream = pretty({
// colorize: true,
// });
export const ctx = new Elysia({
name: "@app/ctx",
})
.use(
logger({
level: config.env.LOG_LEVEL,
stream,
})
)
// .use(
// logger({
// level: config.env.LOG_LEVEL,
// stream,
// })
// )
.decorate("db", db)
.decorate("config", config)
.decorate(

File diff suppressed because one or more lines are too long