ci(build): added in dotenvx for env stuff
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import express from "express";
|
||||
import { setupRoutes } from "@/src/routes/routeHandler.route.js";
|
||||
|
||||
const port = Number(process.env.PORT);
|
||||
const startApp = async () => {
|
||||
const app = express();
|
||||
const baseUrl = "";
|
||||
setupRoutes(baseUrl, app);
|
||||
|
||||
app.listen(3000, () => {
|
||||
console.log("Listening on port 3000");
|
||||
app.listen(port, () => {
|
||||
console.log(`Listening on port ${port}`);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user