O
O
oowliq2020-05-24 22:51:51
JavaScript
oowliq, 2020-05-24 22:51:51

Next.js for a large ECOM project?

It is necessary to rewrite a large online store with a large number of products and categories on React (SSR). My eyes fell on Next.js and I want to ask what pitfalls you may encounter and whether it is generally advisable to use Next in such a project. Thanks in advance for your replies)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Sviridov, 2020-05-25
@dimuska139

If the frontend is based on React, and at the same time it is necessary that search engines are good friends with the site, then NextJS is required. Yes, even though Google has been saying for a long time that it can crawl js sites. In fact, it indexes them worse. And other search engines are generally not friends with js.

what pitfalls

More likely with stones flying at you. There are quite a few people who don't want to use React for website development and rivet the old fashioned way: all html is generated on the server using some php + jQuery on the front. And these people will constantly throw stones at you, foaming at the mouth, trying to prove to you that you are overcomplicating everything. But you need to understand that large online stores usually have a complex front-end, and cutting it on jQuery or pure js is suicide, because the code will be garbage in 99% of cases.
But seriously, the only thing I didn’t like about NextJS was routing. But this is also subjective.

D
dipiash, 2020-05-26
@dipiash

Next.js is a good tool. But for a large project, you will have to spin caches (for unauthorized users). The rendering operation on the server is not an easy task. And for authorized users, you will need to enable dynamic rendering (to disable most of the SSR).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question