Skip to content

Commit

Permalink
Update config
Browse files Browse the repository at this point in the history
  • Loading branch information
anand-harsh committed Feb 18, 2024
1 parent 07b6e84 commit 5f6d5f0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require('dotenv').config()
import express from "express";
// import { config } from "dotenv";
import course from "./routes/courseRoutes.js";
Expand All @@ -7,9 +6,9 @@ import ErrorMiddleware from "./middlewares/Error.js";
import cookieParser from "cookie-parser";
import cors from "cors";

// config({
// path: "./configs/config.env",
// });
config({
path: ".env",
});
const app = express();

app.use(
Expand Down

0 comments on commit 5f6d5f0

Please sign in to comment.