# \_\_\_netlify-handler function timeout during nextjs redirect

**URL:** <https://answers.netlify.com/t/netlify-handler-function-timeout-during-nextjs-redirect/85098>\
**Category:** Support\
**Tags:** redirects, nextjs\
**Created:** [February 9, 2023, 2:44am UTC](https://answers.netlify.com/t/netlify-handler-function-timeout-during-nextjs-redirect/85098 "2023-02-09T02:44:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathandcarter21](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathandcarter21/32/47685_2.png) [@nathandcarter21](https://answers.netlify.com/u/nathandcarter21)\
**Post date:** [February 9, 2023, 2:44am UTC](https://answers.netlify.com/t/netlify-handler-function-timeout-during-nextjs-redirect/85098/1 "2023-02-09T02:44:00Z")

</div>

Hi,  
I am working on a personal website under [https://newdawnretreats.com](https://newdawnretreats.com) and I am running into a function crash in \_\_\_netlify-handler when trying to redirect in a nextjs api. It keeps timing out after 10 seconds. Not really sure what it is doing or how to fix it. Any help?

 ![functionCrash](https://global.discourse-cdn.com/netlify/original/3X/f/d/fda8253d283f3f32b042c93f686e8971a0a60b1f.png)

---

<div class="post-metadata">

**Author:** ![SamO](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/samo/32/41847_2.png) [@SamO](https://answers.netlify.com/u/SamO)\
**Post date:** [February 10, 2023, 4:53pm UTC](https://answers.netlify.com/t/netlify-handler-function-timeout-during-nextjs-redirect/85098/2 "2023-02-10T16:53:00Z")

</div>

Hi @nathandcarter21 👋🏿 it’s likely you will need a function increase which is why it’s timing out. If you upgrade to a pro tier or higher your functions can increase up to a max of 26s.

When running locally, how long does the request take?
