Next.js Discord

Discord Forum

Need help benchmarking and diagnosing slow TTFB

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
My site in Next 14 is deployed on vercel and using the page router. I'm experiencing a TTFB of around 5s. I'm having trouble diagnosing where the bottleneck could be. I have a lot of components below the fold so I revised the page to use next/dynamic and load the complex portion of the page with SSR off. But there hasn't been any improvement in TTFB.

My getServerSideProps performs two actions:

1. Make a single call to my database hosted on neon to simply look up a project by primary key and return it's name and description.
2. Load some CMS content from the sanity CDN.

Any advise on tools or methods I can use to try to benchmark the performance locally and on vercel would be greatly appreciated!

0 Replies