We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b558115 commit 067ff91Copy full SHA for 067ff91
1 file changed
apps/backend/src/main.ts
@@ -62,7 +62,7 @@ const startServer = async () => {
62
/* -------------------------------------------------------------------------------------------------
63
* Serve
64
* -----------------------------------------------------------------------------------------------*/
65
- const port = 3000;
+ const port = process.env.PORT ? parseInt(process.env.PORT) : 3000;
66
await freePort(port);
67
const server = serve(
68
{
0 commit comments