Skip to content

Commit

Permalink
use new backend
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSilva committed Sep 20, 2024
1 parent 2a2ecab commit e8437ea
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ export default defineConfig(({ mode }) => {
return 'http://localhost:4000';
}

const prNumber = process.env['REVIEW_ID'];

if (prNumber) return `https://finiam-secrets-pr-${prNumber}.herokuapp.com`;

return `https://finiam-secrets.herokuapp.com`;
}
return `https://secrets-subvisual-com.fly.dev`;
}

const apiUrl = buildApiUrl();
console.log('RUNNING WITH THE FOLLOWING API_URL', apiUrl);
Expand Down

0 comments on commit e8437ea

Please sign in to comment.