mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Nick:
This commit is contained in:
parent
de06b13deb
commit
c2ad358390
|
@ -130,7 +130,7 @@ export async function supaAuthenticateUser(
|
|||
}
|
||||
}
|
||||
|
||||
const team_endpoint_token = team_id;
|
||||
const team_endpoint_token = token === "this_is_just_a_preview_token" ? iptoken : team_id;
|
||||
|
||||
try {
|
||||
await rateLimiter.consume(team_endpoint_token);
|
||||
|
|
|
@ -67,18 +67,11 @@ const createRateLimiter = (keyPrefix, points) =>
|
|||
duration: 60, // Duration in seconds
|
||||
});
|
||||
|
||||
export const previewRateLimiter = createRateLimiter(
|
||||
"preview",
|
||||
RATE_LIMITS.preview.default
|
||||
);
|
||||
export const serverRateLimiter = createRateLimiter(
|
||||
"server",
|
||||
RATE_LIMITS.account.default
|
||||
);
|
||||
export const crawlStatusRateLimiter = createRateLimiter(
|
||||
"crawl-status",
|
||||
RATE_LIMITS.crawlStatus.default
|
||||
);
|
||||
|
||||
export const testSuiteRateLimiter = createRateLimiter(
|
||||
"test-suite",
|
||||
RATE_LIMITS.testSuite.default
|
||||
|
|
Loading…
Reference in New Issue
Block a user