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 17, 2024
1 parent 765c6ca commit 4fc83fa
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 105 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const app = express();

app.use(
cors({
origin: "http://localhost:3000",
origin: "https://edumi-zeta.vercel.app",
credentials: true,
})
);
Expand Down
102 changes: 0 additions & 102 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/src/config/constant.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const API_ENDPOINT = process.env.REACT_APP_API_ENDPOINT;
export const API_ENDPOINT = "http://localhost:4000/api/v1";
2 changes: 1 addition & 1 deletion configs/Database.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import mongoose from "mongoose";
export const connectDB= async()=>{
const {connection}= await mongoose.connect(process.env.MONGO_URI)
console.log(`Mongodb connected with ${connection.host}`)
}
}
15 changes: 15 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version":2,
"builds":[
{
"src":"index.js",
"use":"@vercel/node"
}
],
"routes":[
{
"src":"/(.*)",
"dest":"/"
}
]
}

0 comments on commit 4fc83fa

Please sign in to comment.