Skip to content

Commit

Permalink
Refactor: Update 'baseURL' and 'appId' assignment to use env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ITurres committed Dec 10, 2023
1 parent 340218d commit 57724de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/services/involvementAPI/involvementAPI.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import config from '../../config.ts';

const { baseURL, appId } = config.involvementAPI;
const baseURL = process.env.REACT_APP_INVOLVEMENT_API_BASE_URL;
const appId = process.env.REACT_APP_INVOLVEMENT_API_APP_ID;

const postLike = async (itemId: string) => {
try {
Expand Down

0 comments on commit 57724de

Please sign in to comment.