Any Next.js expert here? I need to debug why “Init...
# random
d
Any Next.js expert here? I need to debug why “Initial server response time” is longer for some pages. Is there any tool I should use or just manually take at code of the whole page?
b
No expert here. Just use
hrtime
if you don’t have profiling tools. You only have middleware and page content. Is this on a serverless platform or local? Serverless are notorious for cold boot issues
a
Are you using any data fetching methods like
getServerSideProps
in these pages
d
Just use 
hrtime
 if you don’t have profiling tools.
Hmm.. Okay will try. Thanks.
Are you using any data fetching methods like 
getServerSideProps
 in these pages
We have Apollo Client's SSR setup in
getIntitialProps
of
Document
. I think I will add hrtime to each operation we do in that function and find what is causing issues on each page. But I am looking for maybe an easy tracing solution.
a
Okay so most likely the pages where you are running large or slow queries would be slow to render server side.