Skip to content

Commit

Permalink
changed:max-duaration changed to 59sec
Browse files Browse the repository at this point in the history
  • Loading branch information
urzahmed committed May 18, 2024
1 parent 0eaaee7 commit a93c51e
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 = 59; // This function can run for a maximum of 59 seconds
export const dynamic = "force-dynamic";
export const revalidate = 0;

Expand Down

0 comments on commit a93c51e

Please sign in to comment.