DEV Community

anilsculptsoft
anilsculptsoft

Posted on

1 1

Pre-render page using getServerSideProps after user login

Hi,
I'm new in NextJS, and I'm developing app where i want pre-render home page after login. Here in home page my API call need user token which is stored at local storage. So i'm not getting how to pre-render home page using getServerSideProps.
Can you please explain?
Thank you.

Top comments (0)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay