Next.js Discord

Discord Forum

Set Timeout on SSR Page ?

Unanswered
Masai Lion posted this in #help-forum
Open in Discord
Masai LionOP
Hello!
I've moved my external API fetch logic directly to the server-rendered page.

The problem is that the fetch call lasts more than 15 seconds. In the API, I used 'maxDuration,' and it worked great. I tried to implement it on the page, but it doesn't seem to be taken into consideration.

How can I manage the timeout on an SSR page?

Thanks!

0 Replies