Skip to content

Commit

Permalink
Modify cron duration to 60 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
arka8038 committed Jun 28, 2024
1 parent 75cc47f commit baa4b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/cron/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit baa4b5c

Please sign in to comment.