Skip to content

Commit

Permalink
🚚 add server api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
heytulsiprasad committed Sep 23, 2020
1 parent 1b6defc commit 2aa5c99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import { setAuthState } from "./redux/actions/authActions";

const backendURL =
process.env.NODE_ENV === "production"
? process.env.REACT_APP_BACKEND_PROD_URL
: process.env.REACT_APP_BACKEND_DEV_URL;
? "https://talk-to-network.herokuapp.com"
: "http://localhost:5000";

const App = ({ isAuth, setAuthState }) => {
const [isLoading, setIsLoading] = useState(true);
Expand Down
4 changes: 2 additions & 2 deletions src/redux/actions/authActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {

const backendURL =
process.env.NODE_ENV === "production"
? process.env.REACT_APP_BACKEND_PROD_URL
: process.env.REACT_APP_BACKEND_DEV_URL;
? "https://talk-to-network.herokuapp.com"
: "http://localhost:5000";

export const setCurrentUser = (newUser) => ({
type: SET_CURRENT_USER,
Expand Down

1 comment on commit 2aa5c99

@vercel
Copy link

@vercel vercel bot commented on 2aa5c99 Sep 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.