Use PORT env var for server port
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user