How to handle SSR and protected pages in NextJS? - tRPC