Skip to content

Commit

Permalink
hard code heroku url
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Abaker authored and Mohamed Abaker committed Jan 20, 2024
1 parent 3928ac3 commit c0ed8b6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions client/src/util/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ async function resolve(promise: Promise<any>) {
/**
* To UPDATE DURING DEPLOYMENT USING ENVIRONMENT VARIABLES
*/
const BACKENDURL = process.env.PUBLIC_URL
? process.env.PUBLIC_URL
: 'http://localhost:4000';
// const BACKENDURL = process.env.PUBLIC_URL
// ? process.env.PUBLIC_URL
// : 'http://localhost:4000';

console.log(process.env.PUBLIC_URL);
console.log(process.env);
const BACKENDURL = 'https://achieve-now-512a40f886c1.herokuapp.com';

const URLPREFIX = `${BACKENDURL}/api`;

Expand Down

0 comments on commit c0ed8b6

Please sign in to comment.