mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
refactor: ♻️ Don't use Bun global
This commit is contained in:
parent
d55668d529
commit
25ea870f71
15 changed files with 32 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue