Skip to content

Commit

Permalink
Experimenting.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsommardahl committed Mar 7, 2024
1 parent 4aaa88b commit 5ae0329
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cd-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ jobs:
path: frontend/build

- name: Prepare frontend with backend url
uses: jacobtomlinson/gha-find-replace@v2
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "process.env.REACT_APP_API_URL || 'http://localhost:5001'"
find: "'http://localhost:5001'"
replace: '"${{ inputs.backend_url }}"'
include: frontend/build/**
regex: false

- name: Store Release Artifact
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/services/api.client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export async function getHashedValue(value) {
const apiHost = process.env.REACT_APP_API_URL || 'http://localhost:5001';
const apiHost = 'http://localhost:5001';
const response = await fetch(`${apiHost}/hash/${value}`);
const hash = await response.text();
return hash;
Expand Down

0 comments on commit 5ae0329

Please sign in to comment.