There is a site with a client and a server part. The client part is hosted on Vercel, the server part on Railway. The client part makes requests to the server using Axios, Axios instance has baseUrl which is taken from .env file. The variable was specified in the settings when it was hosted on Vercel like that VITE_API_URL: link which generated Railway. Vite is used as the builder. The problem is that request to server Request URL looks like this [link that Vercel generates]/[variable that was specified in Vercel settings]. I have used Vercel, Surge, Render, Netlify and all platforms have this problem.
Instance of Axios: Instance of Axios
vercel.json file: Vercel.json
I expect the Request URL to look like this [variable that was specified in Vercel settings].