refactor: ♻️ Don't use Bun global

This commit is contained in:
Jesse Wierzbinski 2025-03-30 23:06:34 +02:00
parent d55668d529
commit 25ea870f71
No known key found for this signature in database
15 changed files with 32 additions and 19 deletions

View file

@ -1,4 +1,4 @@
import type { Server } from "bun";
import { type Server, serve } from "bun";
import type { Hono } from "hono";
import type { z } from "zod";
import type { ConfigSchema } from "~/classes/config/schema.ts";
@ -9,7 +9,7 @@ export const createServer = (
config: z.infer<typeof ConfigSchema>,
app: Hono<HonoEnv>,
): Server =>
Bun.serve({
serve({
port: config.http.bind_port,
reusePort: true,
tls: config.http.tls