Skip to content

Commit

Permalink
Merge pull request #126 from bettersg/124_hotfix_getschemes
Browse files Browse the repository at this point in the history
hotfix reusable url for prod and dev environments
  • Loading branch information
yevkim authored Dec 28, 2024
2 parents f698508 + 882ea91 commit 943179d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/search-bar/search-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ export default function SearchBar({
};

const getSchemes = async () => {
const url =
"http://localhost:5001/schemessg-v3-dev/asia-southeast1/schemes_search";
const url = `${process.env.NEXT_PUBLIC_API_BASE_URL}/schemes_search`;

const requestBody = {
query: userQuery,
Expand Down

0 comments on commit 943179d

Please sign in to comment.