Next.js Discord

Discord Forum

SSG file generated times for Pages Router

Answered
vTotal posted this in #help-forum
Open in Discord
Hi, just looking more for a little bit of info.

I’m currently building a project using the pages router, and my build times for SSG pages are about 1500ms without any real styling. I was just wondering if this is not a concerning number of if there’s something wrong so that I can investigate why the build time is taking that amount of time.

Thanks in advance!
Answered by joulev
that means your page takes 1.5s to build, but since it's static, all visitors will see it instantly. so there's nothing to worry about
View full answer

10 Replies

Great golden digger wasp
Bro that is completely
normal that build time takes 1500ms don't worry.
@Great golden digger wasp Bro that is completely normal that build time takes 1500ms don't worry.
Oh okay cool, even without styles or anything? All I’m doing is just grabbing content from my CMS. I’m mostly flagging it because my editor seems to flag the number as yellow if not red so I didn’t know if that was a number I can reduce.
Answer
Dope, much appreciated
:catjamrave:
the number is there so that when your total build time is too long for example, you know what page is causing the issue
1.5s is not exactly normal, but not a cause of concern generally
So what is normal? I mean I can only think that getting the content from the CMS is what’s adding build time
if it was normal, the number wouldn't be displayed.

i think this is just because your cms is slow, or the data you are fetching is insanely large. either way, it's not an issue since the worst that can happen is that your build command takes slightly longer
@joulev if it was normal, the number wouldn't be displayed. i think this is just because your cms is slow, or the data you are fetching is insanely large. either way, it's not an issue since the worst that can happen is that your build command takes slightly longer
Right okay, just want to make sure that is all good. I assume the pages themselves being as small as they are in file size currently are fine.

Alright, thanks for that. I’ll try and figure out how to close this thread now 😂