my deployed site works normally, it’s able to send api requests to my backend hosted on render.
however, whenever i refresh the page or manually type the url, it shows a white screen with text: “The requested URL was not found on the server…”
You don’t have to change it to /api but you would need to do something so that the routes that need to proxy to Render can be differentiated from the ones that should be served by Netlify.
If you have a limited number of API routes you could specify them all independently before the SPA catch-all.
Using a simple prefix like /api/ is just a common solution that lets you solve it with a single proxy rule and also know with confidence when looking at your URL’s which ones are routing to which service.