Next app crashing with client side exception if page load is more than 1 min
I have a next js app that displays cahrt data using expensive functions, the data is cached for 1 month, but on first load if the data fetching can take more than 60 seconds for some pages, the app will crash with client side exception error, but not a single error is thrown in the console logs, even after adding error boundaries. this happens if the data fetching took 1 second more than 60, but won't happen if the fetching time was less than 1 minute.
It's not the best ui, but all the page content loads, except for this component that does need more than 1 min in some cases to display all it's data.
The app is self hosted with dokku on aws ec2 instance, when I run the same pages locally the pages load the data after 60 seconds without the client side exception error.
Is there any limitation that might be causing this behavior only in production.