Do ssr routes work at all in Netlify? What logs are you seeing on your ssr function when a route is called?
There needs to be a function invocation, does that happen?
For reference, here are the docs on Neltify's side
https://docs.netlify.com/integrations/frameworks/astro/#deploy-an-astro-app-with-ssr-on-netlify