Skip to content

Commit

Permalink
#17 - remove 5000 from port = process.env.PORT | 5000 since heroku do…
Browse files Browse the repository at this point in the history
…es not like it and stops
  • Loading branch information
jianmingtu committed Apr 17, 2021
1 parent f074863 commit f82cf8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { upload } from './s3'
// export async function getPost({postId})
// export async function savePost({type, imageUrl, description})

// const BASE_API = "https://fathomless-lake-61399.herokuapp.com/api"
const BASE_API = "http://localhost:5000/api"
const BASE_API = "https://fathomless-lake-61399.herokuapp.com/api"
// const BASE_API = "http://localhost:5000/api"

// Create an object to send it as a bearer token
const authHeader = () => { return { Authorization: `Bearer ${localStorage.getItem('token')}` }}
Expand Down

0 comments on commit f82cf8e

Please sign in to comment.