added env for docker

This commit is contained in:
JBB0807 2025-04-28 11:12:10 -07:00
parent a67a1fef8a
commit fe25235c6d
2 changed files with 7 additions and 1 deletions

2
.env Normal file
View file

@ -0,0 +1,2 @@
VITE_AUTH_URL="http://localhost:8080/auth/google"
#VITE_AUTH_URL="https://byte-camp-auth-service.fly.dev/auth/google"

View file

@ -1,5 +1,8 @@
import React from "react"; import React from "react";
function SignUpForm() { function SignUpForm() {
const authUrl = import.meta.env.VITE_AUTH_URL;
const [state, setState] = React.useState({ const [state, setState] = React.useState({
name: "", name: "",
email: "", email: "",
@ -30,7 +33,8 @@ function SignUpForm() {
}; };
const googleAuth = () => { const googleAuth = () => {
window.open("https://byte-camp-auth-service.fly.dev/auth/google", "_self");
window.open(authUrl, "_self");
}; };
return ( return (