I have my frontend and backend in separate directories. Deploying the static frontend site on Netlify is straightforward. However, when deploying on Vercel, instead of using the backend URL specified in the frontend’s .env file under REACT_APP_API_URL, it defaults to the Vercel-hosted domain. How can I resolve this?
In my Fit-Track project, I’ve used ${backendURL} to reference the backend URL from REACT_APP_API_URL. This works perfectly on Netlify, but I’m encountering issues on Vercel due to its use of a custom domain.
I’ve resolved the issue, and it’s now working fine on Vercel as well. Thanks for your quick response! I’ll reach out if I encounter any further issues in the future.