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?
Directory structure (example):
backend/ ├── models/example.model.js ├── routes/example.js ├── .env └── server.js
frontend/ ├── public/ ├── src/ │ ├── components/ │ ├── .env │ ├── App.js │ ├── index.js │ └── index.css └── other files
