diff --git a/apps/server/src/index.ts b/apps/server/src/index.ts index cfe8aa1..9207700 100644 --- a/apps/server/src/index.ts +++ b/apps/server/src/index.ts @@ -26,7 +26,7 @@ registerRoutes(app); // start Bun.serve with WebSocket support. if (typeof Bun !== "undefined" && !process.env.BUN_TEST) { Bun.serve({ - port: 3000, + port: Number(process.env.PORT ?? 3000), hostname: "0.0.0.0", websocket: shoppingWsHandlers, async fetch(req: Request, server) {