Merge pull request #3390 from bluewave-labs/fix/port-env-var
Fix: restore PORT env var
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-3
@@ -50,9 +50,8 @@ const startApp = async () => {
|
|||||||
openApiSpec,
|
openApiSpec,
|
||||||
});
|
});
|
||||||
|
|
||||||
const port = 52345;
|
const server = app.listen(env.PORT, () => {
|
||||||
const server = app.listen(port, () => {
|
logger.info({ message: `Server started on port:${env.PORT}` });
|
||||||
logger.info({ message: `Server started on port:${port}` });
|
|
||||||
});
|
});
|
||||||
|
|
||||||
initShutdownListener(server, services);
|
initShutdownListener(server, services);
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|||||||
|
|
||||||
const envSchema = z.object({
|
const envSchema = z.object({
|
||||||
// Server Configuration
|
// Server Configuration
|
||||||
|
PORT: z.string().default("52345"),
|
||||||
NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
|
NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
|
||||||
LOG_LEVEL: z.enum(["error", "warn", "info", "debug"]).default("debug"),
|
LOG_LEVEL: z.enum(["error", "warn", "info", "debug"]).default("debug"),
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user