adrianhajdin / pricewise

Dive into web scraping and build a Next.js 13 eCommerce price tracker within a single video that teaches you data scraping, cron jobs, sending emails, deployment, and more.
https://pricewise-jsm.vercel.app
508 stars 151 forks source link

invalid maxDuration value for Serverless Function "api/cron" #13

Open bhaskar3009 opened 8 months ago

bhaskar3009 commented 8 months ago
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
bhaskar3009 commented 8 months ago

issue regarding maxDuration

lodha13 commented 7 months ago

were you able to solve this problem, i am also getting the same issue

Jayant-Gahlot commented 2 months ago

Any solutions?