# Nextjs - Constants Timeouts with doc. on live server

**URL:** <https://community.auth0.com/t/nextjs-constants-timeouts-with-doc-on-live-server/94860>\
**Category:** Get Help\
**Tags:** nextjs, auth0\
**Created:** [November 21, 2022, 8:58pm UTC](https://community.auth0.com/t/nextjs-constants-timeouts-with-doc-on-live-server/94860 "2022-11-21T20:58:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![santigamo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/santigamo/32/41409_2.png) [@santigamo](https://community.auth0.com/u/santigamo)\
**Post date:** [November 21, 2022, 8:58pm UTC](https://community.auth0.com/t/nextjs-constants-timeouts-with-doc-on-live-server/94860/1 "2022-11-21T20:58:47Z")

</div>

Hi all!

When I try to follow the [following simple example](https://auth0.github.io/nextjs-auth0/modules/helpers_with_page_auth_required.html#withpageauthrequiredoptions) and I deploy in vercel (Hobby Plan). I constantly receive the following error:  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/5/e5db1c6b864077d0e85a187c2eec14cd6918cb1e.png)

Am I doing something wrong? I need some extra configuration to use WithPageAuthRequiredOptions.

PS: Locally all works fine

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 22, 2022, 9:05am UTC](https://community.auth0.com/t/nextjs-constants-timeouts-with-doc-on-live-server/94860/2 "2022-11-22T09:05:01Z")

</div>

Hey there!

Can you share with us a link to the resource that you are using so we can get help from one of the authors? Thank you!

---

<div class="post-metadata">

**Author:** ![ale.vesga1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ale.vesga1/32/60921_2.png) [@ale.vesga1](https://community.auth0.com/u/ale.vesga1)\
**Post date:** [December 20, 2024, 5:21pm UTC](https://community.auth0.com/t/nextjs-constants-timeouts-with-doc-on-live-server/94860/3 "2024-12-20T17:21:01Z")

</div>

Our team is answering some of our most frequently asked questions.

I would need more information to accurately diagnose, this may be an issue on the Vercel side. I recommend opening a support ticket with them.

For more information and possible troubleshooting strategies, here’s what Vercel has to say about the error. Take a look and see if it helps:

> **[FUNCTION\_INVOCATION\_TIMEOUT](https://vercel.com/docs/errors/FUNCTION_INVOCATION_TIMEOUT)**
>
> The request for a Serverless Function reached the timeout threshold. This is an application error.

Additionally, review the [integration guide](https://vercel.com/integrations/auth0) and the [sample app template](https://vercel.com/templates/next.js/auth0-nextjs-saas-starter) for further insights.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 3, 2025, 5:21pm UTC](https://community.auth0.com/t/nextjs-constants-timeouts-with-doc-on-live-server/94860/4 "2025-01-03T17:21:29Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
