Next.js Discord

Discord Forum

why would nextjs recommends the pre rendering in a e-commerce website?

Unanswered
Golden paper wasp posted this in #help-forum
Open in Discord
Golden paper waspOP
ecommerce website has a lot of products right? that updates everytime depends on the users that are selling? What i understand from pre-rendered vs non prerendered is pre rendering are a websites that has static content like portfolio or something, while server side rendering is a page that has a different kinds of contents that needs to be updated and what im thinking is its like a ecommerce website that has a lot of content that changes overtime depends on the users that are selling new items

4 Replies

Golden paper waspOP
im a newbie xD i just want to understand the topic of pre rendering vs serverside rendering fully, and when to use either of them
pre-rendering means the page's html is generated by the server before being sent to the client
when there is a lot of content it can be helpful to use pre-rendering because instead of waiting for the client to first recieve all the data, and THEN start rendering might be slow.
So instead with pre-rendering you get sent the pre-rendered page so you can atleast start seeing the page, and THEN the hydration begins which is basically some extra javascript code sent with the pre-rendered page which makes your page interactive