Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
NOOB-3301 committed Jan 8, 2025
1 parent 7314bb3 commit 75646e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/api/dbconnect.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import mongoose from 'mongoose';
import dotenv from 'dotenv'

dotenv.config({
path:'server/api/.env'
})
dotenv.config()
// Database connection
export const dbConnect = async () => {
const url = process.env.MONGO_URI;

0 comments on commit 75646e8

Please sign in to comment.