Next.js Discord

Discord Forum

Are we doomed?

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
We have a large database on our hands like 137000 coins and more data to show on our website and e-commerce as well for 3900 products.

Can I make such a huge app with nextjs.

Also it generated one html file for all pages I tried with 2

Will it generate similarly for all these products?

Can I dynamically pass params to a page like coin/1-india parse the 1-india part fetch data and show it with static site generation.

Will it fetch data from our api in real time or only once while building it?

Also will it work well for seo?

1 Reply

Yes you can make huge app with nextjs. You can just leave rendering to nextjs and let your deployment of your choice to handle serving the pages to your client.

You can dynamically pass param to a page. But to utilize SSG, you need to know all the possible param so that nextjs knows what path to render.
This is employed using generateStaticParam()

It will be fetched once during build as it is mentioned in the name: Static Site Generation

It works well for SEO