I've built a project heavily using SSR to allow for authenticated pages. It works really well locally (using dynamic data pulled from a live server via headless CMS), but once it's up on Netlify, page load times are horrible, frequently timing out and regularly taking 10+ seconds.
I was wondering if anyone had any good tutorials, videos, tip, or tricks in terms of either debugging or optimising page cacheing, Netlify function performance, or Astro SSR? Could this be some kind of cache issue, or malformed SSR code? Basically any intro or deep-dives would be appreciated!
(I believe the issue is predominantly in the build environment, not the APIs themselves, as they have been heavily optimised and, when queried directly, return values in ms counts; even if the Netlify and CMS servers are much further apart, it shouldn't be factors of 1000+ different)