I am using Next 13 and I am facing issue when production build only. Basically site works fine but when I try to open a page by URL typing in browser it shows empty page or white screen. Upon checking the browser console I see a keyword undefined being appended to all of the asset files.
This is only happening to pages in which getServerSideProps is implemented. I have checked and put try catch in the getServerSideProps as well to return default props.