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

File diff suppressed because one or more lines are too long