Skip to content

Commit

Permalink
Update Login.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
sikehish authored Aug 11, 2024
1 parent 10d1568 commit 416373f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/pages/auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ function Login() {
const googleAuth = (e: any) => {
e.preventDefault();
const callbackUrl =
// "http://localhost:3000/api/oauth/google"
import.meta.env.VITE_NODE_ENV === "development"
? "http://localhost:3000/api/oauth/google"
? "http://langjam-env.eba-hpagnuec.us-east-1.elasticbeanstalk.com/api/oauth/google"
: "/api/oauth/google";

window.open(callbackUrl, "_self");
Expand Down

0 comments on commit 416373f

Please sign in to comment.