refactor(server): update imports

This commit is contained in:
Mauricio Siu
2024-09-29 11:55:29 -06:00
parent 9b7aacc934
commit e4b998c608
35 changed files with 170 additions and 184 deletions

View File

@@ -47,11 +47,11 @@ const queue = new Queue({
},
redisClient,
});
const port = 4000;
const port = process.env.PORT;
(async () => {
await redisClient.connect();
await redisClient.flushAll();
})();
console.log("Starting Server ✅");
console.log("Starting Server ✅", port);
serve({ fetch: app.fetch, port });