Poor Server Response Time (Time to First Byte)

Hello, I recently deployed my website - minecraftstorage.com, on Netlify. The website is developed using the Nuxt 3 framework and sends requests to an API at https://api.minecraftstorage.com to render each page. The API server is located in Russia. After deploying the website on Netlify, users started experiencing significant delays in server response time and an average Time to First Byte has increased to 2.9 seconds. I am currently trying to improve the performance through optimising the code, but that hasn’t helped out much. Can you please help me to figure out what could be the issue here?

How long does your API take to send a response to Netlify? Read: [Support Guide] Why is my function taking long or timing out?

Well, here is the thing. The response time is different from each location, as the api server is located in one place, Russia. Meanwhile, Netlify serves users from their closest location, which is perhaps not doing any good in this case. So each time a user opens the website, the request is sent to Netlify server, which itself sends the request to the api, receives a response from the api and then sends the response back to user. Could it be possible that having the website deployed on the edge is causing the problem?

You can switch to netlify preset instead of netlify_edge and then the requests to your API will be made from a single location. That location can be set in site settings.

Thank you for your help! I will try that out