Skip to content

Commit 1f56338

Browse files
authored
Merge pull request #3390 from bluewave-labs/fix/port-env-var
Fix: restore PORT env var
2 parents ff2b6df + afd6a12 commit 1f56338

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ const startApp = async () => {
5050
openApiSpec,
5151
});
5252

53-
const port = 52345;
54-
const server = app.listen(port, () => {
55-
logger.info({ message: `Server started on port:${port}` });
53+
const server = app.listen(env.PORT, () => {
54+
logger.info({ message: `Server started on port:${env.PORT}` });
5655
});
5756

5857
initShutdownListener(server, services);

server/src/validation/envValidation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { z } from "zod";
22

33
const envSchema = z.object({
44
// Server Configuration
5+
PORT: z.string().default("52345"),
56
NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
67
LOG_LEVEL: z.enum(["error", "warn", "info", "debug"]).default("debug"),
78

0 commit comments

Comments
 (0)