I was having an issue where my Vercel functions would timeout on page re-validation. I had seen a recent tweet about how profiling can be used to understand where execution time is being strained.
Took the time to learn how profiling and debugging can be done correctly (instead of just console.log) . Was it an upstream issue with the Notion API or a library ?
I was able to identify a library function that was delaying the execution time (converting the images to a blur), so I stored that data in my CMS for faster access.
No more errors and successful page re-validation !
Took the time to learn how profiling and debugging can be done correctly (instead of just console.log) . Was it an upstream issue with the Notion API or a library ?
I was able to identify a library function that was delaying the execution time (converting the images to a blur), so I stored that data in my CMS for faster access.
No more errors and successful page re-validation !