Concerned about build times for static website
Unanswered
Red ant posted this in #help-forum
Red antOP
Hello, friends!
I'm looking to build a content-heavy website with around 400-500 pages, and I plan on using MDX for the articles.
I want to go with full SSG mode (static export) approach and avoid setting up SSR or a VPS (For specific reasons, I can't use Vercel or Netlify for deploy).
My main concern is build time performance. How does Next.js handle building a static site of this size? Should I expect the build times to be painfully long?
Have you built static websites with NextJS/MDX which contain hundreds of pages? What is your build times for static website?
I'm looking to build a content-heavy website with around 400-500 pages, and I plan on using MDX for the articles.
I want to go with full SSG mode (static export) approach and avoid setting up SSR or a VPS (For specific reasons, I can't use Vercel or Netlify for deploy).
My main concern is build time performance. How does Next.js handle building a static site of this size? Should I expect the build times to be painfully long?
Have you built static websites with NextJS/MDX which contain hundreds of pages? What is your build times for static website?
2 Replies
@Red ant Hello, friends!
I'm looking to build a content-heavy website with around 400-500 pages, and I plan on using MDX for the articles.
I want to go with full SSG mode (static export) approach and avoid setting up SSR or a VPS (For specific reasons, I can't use Vercel or Netlify for deploy).
My main concern is build time performance. How does Next.js handle building a static site of this size? Should I expect the build times to be painfully long?
Have you built static websites with NextJS/MDX which contain hundreds of pages? What is your build times for static website?
It could take long yes. It depends on how much time it takes to fetch the data needed for each page you have
There is some parallelising iirc but if each page takes 1 sec to fetch and build, you will be looking at hundreds of seconds for building those pages only