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 824c7d7 commit 2b474b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require('dotenv').config()
import express from "express";
import { config } from "dotenv";
import course from "./routes/courseRoutes.js";
Expand All @@ -6,9 +7,9 @@ import ErrorMiddleware from "./middlewares/Error.js";
import cookieParser from "cookie-parser";
import cors from "cors";

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

app.use(
Expand Down
1 change: 1 addition & 0 deletions configs/config.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ PORT=4000
MONGO_URI=mongodb://0.0.0.0:27017/coursebundle
FRONTEND_URL=http://localhost:3000
JWT_SECRET= eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
BACKEND_URL=http://localhost:4000

0 comments on commit 2b474b1

Please sign in to comment.