Skip to content

Commit 092adfd

Browse files
Subham12Rclaude
andcommitted
Fix server to use Railway PORT environment variable
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8fdcdc0 commit 092adfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ process.on("uncaughtException", (error) => {
2525
process.exit(1)
2626
})
2727

28-
const PORT = process.env.WS_PORT || 3001
28+
const PORT = process.env.PORT || process.env.WS_PORT || 3001
2929
const CLIENT_URL = process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000"
3030
const REDIS_URL = process.env.REDIS_URL || ""
3131

0 commit comments

Comments
 (0)