fix: updated the maxDuration for api/cron job

This commit is contained in:
Leon Xu committed 2023-12-30 17:33:44 -08:00
1 parent 805674717c
commit e3e123a5fa
1 file changed
+1 -1
+1 -1
View File
@@ -6,7 +6,7 @@ import Product from '@/lib/models/product.model';
import { scrapeAmazonProduct } from '@/lib/scraper';
import { generateEmailBody, sendEmail } from "@/lib/nodemailer";
export const maxDuration = 300; // This function can run for a maximum of 300 seconds
export const maxDuration = 60; // This function can run for a maximum of 300 seconds
export const dynamic = "force-dynamic";
export const revalidate = 0;