mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-15 19:22:19 +08:00
This commit is contained in:
parent
0b409d7609
commit
96c579f1cd
|
@ -358,6 +358,8 @@ function getPlanByPriceId(price_id: string): PlanType {
|
|||
return "growth";
|
||||
case process.env.STRIPE_PRICE_ID_GROWTH_DOUBLE_MONTHLY:
|
||||
return "growthdouble";
|
||||
case process.env.STRIPE_PRICE_ID_ETIER2C:
|
||||
return "etier2c";
|
||||
default:
|
||||
return "free";
|
||||
}
|
||||
|
|
|
@ -70,6 +70,10 @@ export async function getJobPriority({
|
|||
bucketLimit = 400;
|
||||
planModifier = 0.1;
|
||||
break;
|
||||
case "etier2c":
|
||||
bucketLimit = 1000;
|
||||
planModifier = 0.05;
|
||||
break;
|
||||
|
||||
default:
|
||||
bucketLimit = 25;
|
||||
|
|
|
@ -15,6 +15,7 @@ const RATE_LIMITS = {
|
|||
standardnew: 10,
|
||||
growth: 50,
|
||||
growthdouble: 50,
|
||||
etier2c: 300,
|
||||
},
|
||||
scrape: {
|
||||
default: 20,
|
||||
|
@ -28,6 +29,7 @@ const RATE_LIMITS = {
|
|||
standardnew: 100,
|
||||
growth: 1000,
|
||||
growthdouble: 1000,
|
||||
etier2c: 2500,
|
||||
},
|
||||
search: {
|
||||
default: 20,
|
||||
|
@ -41,6 +43,7 @@ const RATE_LIMITS = {
|
|||
standardnew: 50,
|
||||
growth: 500,
|
||||
growthdouble: 500,
|
||||
etier2c: 2500,
|
||||
},
|
||||
map:{
|
||||
default: 20,
|
||||
|
@ -54,6 +57,7 @@ const RATE_LIMITS = {
|
|||
standardnew: 50,
|
||||
growth: 500,
|
||||
growthdouble: 500,
|
||||
etier2c: 2500,
|
||||
},
|
||||
preview: {
|
||||
free: 5,
|
||||
|
|
|
@ -157,6 +157,7 @@ export type PlanType =
|
|||
| "standardnew"
|
||||
| "growth"
|
||||
| "growthdouble"
|
||||
| "etier2c"
|
||||
| "free"
|
||||
| "";
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user