The error you’re seeing is here: Server.edge not defined Error on nextJS SSR functions cause site to return 500 Errors