NextJS SSR error when deploy on Pages

Hey everyone. I have an error when i tried deploy my website to Pages. Building and deploy works fine, but when i tried to open ssr page i receive 500 error. I’m not sure why it’s appear… Also i tried to add runtime ‘experimantal-edge’ but after that ssr page doesn’t work on localhost too.