-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vercel Serverless Function Timeout #8829
Comments
What causes the responses to take so long? |
Does it really matter? I could think of multiple use cases where I would to be able to define a longer |
I think so. If it is because of some user code, then it might be better handled by user code as well. |
Hello @jln13x. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
How would this need a repro? |
If it is not a bug with a repro, it might be a feature request, which could benefit from an explanation of a use case, and how Astro could help. Do you want to show a custom 504 page when the function times out? |
After looking at Vercel docs, I see what you mean: We do not have a way to set platform-specific configurations yet, but it is being tracked as a feature request here: |
Since being "granular" is not necessary for |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Vercel changed the default timeout to 15 seconds at the beginning of October.
Now some of my functions are timing out.
I cant seem to find a way to actually set the
maxDuration
of my Astro Routes.My functions are just Astro
APIRoutes
living under/pages/api/..
What's the expected result?
Being able to set the maxDuration
Link to Minimal Reproducible Example
https://stackblitz.cm/abcd1234
Participation
The text was updated successfully, but these errors were encountered: