update to use SAAS_BACKEND_URL on the front-end everywhere
This commit is contained in:
parent
f3ca39b40a
commit
cddc99dc19
@ -8,6 +8,7 @@ import { useAuthenticatedFetch } from "./useAuthenticatedFetch";
|
|||||||
import { useStore } from "../../store/store";
|
import { useStore } from "../../store/store";
|
||||||
import AvatarDropdown from "./AvatarDropdown";
|
import AvatarDropdown from "./AvatarDropdown";
|
||||||
import { UserResponse } from "./types";
|
import { UserResponse } from "./types";
|
||||||
|
import { SAAS_BACKEND_URL } from "../../config";
|
||||||
|
|
||||||
function AppContainer() {
|
function AppContainer() {
|
||||||
const [showPopup, setShowPopup] = useState(false);
|
const [showPopup, setShowPopup] = useState(false);
|
||||||
@ -36,8 +37,7 @@ function AppContainer() {
|
|||||||
|
|
||||||
// TODO: Handle when the user is not signed in
|
// TODO: Handle when the user is not signed in
|
||||||
const user: UserResponse = await authenticatedFetch(
|
const user: UserResponse = await authenticatedFetch(
|
||||||
"https://screenshot-to-code-saas.onrender.com/users/create",
|
SAAS_BACKEND_URL + "/users/create",
|
||||||
// "http://localhost:8001/users/create",
|
|
||||||
"POST"
|
"POST"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user