diff --git a/apps/api/src/services/notification/email_notification.ts b/apps/api/src/services/notification/email_notification.ts index 7ae2f537..9343ddf1 100644 --- a/apps/api/src/services/notification/email_notification.ts +++ b/apps/api/src/services/notification/email_notification.ts @@ -20,7 +20,7 @@ const emailTemplates: Record< }, [NotificationType.RATE_LIMIT_REACHED]: { subject: "Rate Limit Reached - Firecrawl", - html: "Hey there,

You've hit your Firecrawl rate limit! Take a breather and try again in a few moments. If you need more higher rate limits, consider upgrading your plan. Check out our pricing page for more info.

If you have any questions, feel free to reach out to us at hello@firecrawl.com


Thanks,
Firecrawl Team
Ps. this email is only sent once every 7 days if you reach the limit.", + html: "Hey there,

You've hit your Firecrawl rate limit! Take a breather and try again in a few moments. If you need higher rate limits, consider upgrading your plan. Check out our pricing page for more info.

If you have any questions, feel free to reach out to us at hello@firecrawl.com


Thanks,
Firecrawl Team

Ps. this email is only sent once every 7 days if you reach the limit.", }, }; diff --git a/apps/api/src/services/rate-limiter.ts b/apps/api/src/services/rate-limiter.ts index e2faecc1..51543a66 100644 --- a/apps/api/src/services/rate-limiter.ts +++ b/apps/api/src/services/rate-limiter.ts @@ -7,6 +7,7 @@ const RATE_LIMITS = { free: 2, starter: 3, standard: 5, + standardOld: 40, scale: 20, hobby: 3, standardNew: 10, @@ -15,6 +16,7 @@ const RATE_LIMITS = { scrape: { free: 5, starter: 20, + standard: 50, standardOld: 40, scale: 50, hobby: 10, @@ -25,6 +27,7 @@ const RATE_LIMITS = { free: 5, starter: 20, standard: 40, + standardOld: 40, scale: 50, hobby: 10, standardNew: 50, @@ -65,5 +68,6 @@ export function getRateLimiter(mode: RateLimiterMode, token: string, plan?: stri const planKey = plan ? plan.replace("-", "") : "starter"; const points = rateLimitConfig[planKey] || rateLimitConfig.preview; + return createRateLimiter(`${mode}-${planKey}`, points); }