Skip to content

fix: use environment variable REACT_APP_API_URL for API calls in FeedbackModal and Notes - #674

Open
harsharajkumar-273 wants to merge 2 commits into
lovelymahor:mainfrom
harsharajkumar-273:fix/hardcoded-api-urls
Open

fix: use environment variable REACT_APP_API_URL for API calls in FeedbackModal and Notes#674
harsharajkumar-273 wants to merge 2 commits into
lovelymahor:mainfrom
harsharajkumar-273:fix/hardcoded-api-urls

Conversation

@harsharajkumar-273

@harsharajkumar-273 harsharajkumar-273 commented Jul 15, 2026

Copy link
Copy Markdown

Description

This PR addresses the issue by replacing hardcoded http://localhost:5000 API endpoints in FeedbackModal and Notes with the centralized environment variable process.env.REACT_APP_API_URL. This ensures frontend-backend communication works when deployed to production.

Addresses fork issue harsharajkumar-273#2

Proposed Changes

  • FeedbackModal: Replaced hardcoded fetch POST request URL with dynamic env variable check.
  • Notes Component: Configured notes retrieval and XHR upload URLs to resolve using process.env.REACT_APP_API_URL falling back to localhost during local dev.

Verification

  • Checked file changes and tested local execution configuration.

@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Lovely Mahour's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant