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

@@ -1,7 +1,8 @@
{
"name": "my-app",
"scripts": {
"dev": "tsx watch src/index.ts",
"dev": "PORT=4000 tsx watch src/index.ts",
"dev2": "PORT=4001 tsx watch src/index.ts",
"tsc": "tsc --project tsconfig.json"
},
"dependencies": {

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 });