Skip to content

Handle 504 Timeout for Download API #4

@ducttri

Description

@ducttri

Vercel put a limit on Download API at the 60s for the Hobby plan. It is currently set to 60s but there could be a problem if there is more data. Some ideas for improvement could be to check for status codes for 504 and split files into multiple smaller requests to download safely.

Reference:
https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
https://vercel.com/docs/functions/configuring-functions/duration

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions