Skip to content

Commit

Permalink
Merge pull request #773 from manikumarreddyu/googleauth
Browse files Browse the repository at this point in the history
ok
  • Loading branch information
manikumarreddyu authored Nov 4, 2024
2 parents 9abaa1f + 4795eeb commit 0a97a5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ require("./services/passport")
const app = express();

app.use(cors({
origin: "http://localhost:5173",
// origin: "http://localhost:5173",
origin:"https://agro-tech-ai-backend-teal.vercel.app",
credentials: true,
}));
app.use(
Expand Down Expand Up @@ -57,7 +58,7 @@ const PORT = process.env.PORT || 8080;
// MongoDB connection
mongoose.set("strictQuery", false);
mongoose
.connect(process.env.MONGODB_URL || 'mongodb://127.0.0.1:27017/agrotech')
.connect(process.env.MONGODB_URL)
.then(() => console.log("Connected to Database"))
.catch((err) => console.log(err));

Expand Down

0 comments on commit 0a97a5d

Please sign in to comment.