added env for docker
This commit is contained in:
parent
a67a1fef8a
commit
fe25235c6d
2 changed files with 7 additions and 1 deletions
2
.env
Normal file
2
.env
Normal 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"
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
import React from "react";
|
||||
function SignUpForm() {
|
||||
const authUrl = import.meta.env.VITE_AUTH_URL;
|
||||
|
||||
|
||||
const [state, setState] = React.useState({
|
||||
name: "",
|
||||
email: "",
|
||||
|
|
@ -30,7 +33,8 @@ function SignUpForm() {
|
|||
};
|
||||
|
||||
const googleAuth = () => {
|
||||
window.open("https://byte-camp-auth-service.fly.dev/auth/google", "_self");
|
||||
|
||||
window.open(authUrl, "_self");
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue