diff --git a/bun.lock b/bun.lock index bd52136..3d2db29 100644 --- a/bun.lock +++ b/bun.lock @@ -5,7 +5,6 @@ "": { "name": "indigestion", "dependencies": { - "@hono/node-server": "^2.0.9", "@orpc/client": "^1.14.7", "@orpc/openapi": "^1.14.7", "@orpc/server": "^1.14.7", @@ -85,8 +84,6 @@ "@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.12", "", { "os": "win32", "cpu": "x64" }, "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA=="], - "@hono/node-server": ["@hono/node-server@2.0.9", "", { "peerDependencies": { "hono": "^4" } }, "sha512-cNMw3ziCdDcx0+ldta60zvUL5XO0OLt521n2hjPp0PB0ugczDCEczXsf33qQbkKIXWGFQ03f0LC85u6YK8pCLA=="], - "@orpc/client": ["@orpc/client@1.14.7", "", { "dependencies": { "@orpc/shared": "1.14.7", "@orpc/standard-server": "1.14.7", "@orpc/standard-server-fetch": "1.14.7", "@orpc/standard-server-peer": "1.14.7" } }, "sha512-/yloM96/6Z3qlmEgW4/VMYUnhxXbCr6lIJiKSHmsvhgKcwrUPOPJrL3p0ZpItz5SKVtQSwXIhT5KcT/3va/Aew=="], "@orpc/contract": ["@orpc/contract@1.14.7", "", { "dependencies": { "@orpc/client": "1.14.7", "@orpc/shared": "1.14.7", "@standard-schema/spec": "^1.1.0", "openapi-types": "^12.1.3" } }, "sha512-LVAzjOfwW+5L4z5hGOkGGsocFF4URLmQBujrvUr6/TLeDmiiY2kB89jyJ793U40ol9/Ba935g/b0pBajiQhPWA=="], diff --git a/package.json b/package.json index 5b0df75..807c3e7 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "typescript": "^5" }, "dependencies": { - "@hono/node-server": "^2.0.9", "@orpc/client": "^1.14.7", "@orpc/openapi": "^1.14.7", "@orpc/server": "^1.14.7", diff --git a/src/index.ts b/src/index.ts index b2673e5..27af898 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,11 +1,10 @@ -import { serve } from "@hono/node-server"; import app from "./app"; const PORT = parseInt(process.env.PORT || "8080"); -serve({ - fetch: app.fetch, +Bun.serve({ port: PORT, + fetch: app.fetch, }); console.log(`indigestion listening on http://localhost:${PORT}`); diff --git a/src/vercel.ts b/src/vercel.ts index 6975ba7..d3c89ef 100644 --- a/src/vercel.ts +++ b/src/vercel.ts @@ -1,5 +1,3 @@ -import { handle } from "hono/vercel"; import app from "./app"; -export const GET = handle(app); -export const POST = handle(app); +export default app; diff --git a/vercel.json b/vercel.json index f10d692..2a024fb 100644 --- a/vercel.json +++ b/vercel.json @@ -3,12 +3,6 @@ "buildCommand": "bun run build", "outputDirectory": ".vercel/output", "framework": null, - "functions": { - "src/vercel.ts": { - "runtime": "@vercel/node@3", - "includeFiles": "src/**" - } - }, "routes": [ { "src": "/(.*)",