pricewise
pricewise copied to clipboard
invalid maxDuration value for Serverless Function "api/cron"
15:38:35.970 | Error: Builder returned invalid maxDuration value for Serverless Function "api/cron". Serverless Functions must have a maxDuration between 1 and 10 for plan hobby. : https://vercel.com/docs/concepts/limits/overview#serverless-function-execution-timeout
the code is: export const maxDuration = 300; // This function can run for a maximum of 300 seconds but when it sets to 10, and setup cron-job it shows timeout error
issue regarding maxDuration
were you able to solve this problem, i am also getting the same issue
Any solutions?