Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
Add PORT environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama committed Mar 29, 2023
1 parent ddee751 commit 13e49e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ declare global {
* ex: `https://my-bot.vercel.app`, default: `http://localhost:3000`
*/
WEB_URL?: string;

PORT?: string;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ async function bootstrap() {
methods: ['GET', 'HEAD', 'POST', 'DELETE', 'PATCH'],
});

await app.listen(8080);
await app.listen(process.env.PORT ?? 8080);
}
bootstrap();

0 comments on commit 13e49e6

Please sign in to comment.