[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live) [Help](/c/help/9) # I have Frontend and Backend 404 views · 3 likes · 7 posts Narainkarthikv (@narainkarthikv) · 2024-09-18 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 Swarnava Sengupta (@swarnava) · 2024-09-19 · ♥ 2 Hey, do you have a [minimal reproducible](https://vercel.com/guides/creating-a-minimal-reproducible-example) repo that we can take a look? Narainkarthikv (@narainkarthikv) · 2024-09-19 Is the public repo fine for this issue? [Fit-Track Repo Link](https://github.com/narainkarthikv/Fit-Track) 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.  Narainkarthikv (@narainkarthikv) · 2024-09-19 · ♥ 1 Hi @swarnava, 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. reddy (@hanamaraddi) · 2024-10-20 im facing the same issue can i get your help Pauline P. Narvas (@pawlean) · 2024-10-21 Hi, @hanamaraddi! It'd be helpful to give us an example, as @swarnava wrote above. https://community.vercel.com/t/i-have-frontend-and-backend/1137/2 system (@system) · 2026-01-19 Hi @narainkarthikv! 🙂 We haven't heard back from you. If you're still stuck, feel free to share any updates, logs, or additional context that might help us assist you better!