Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(v1): check-status for preview

rafaelsideguide1c35534e2a00
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index 198520788..36a2ca236 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -132,7 +132,11 @@ export async function supaAuthenticateUser(
let priceId: string | null = null;
if (token == "this_is_just_a_preview_token") {
- rateLimiter = getRateLimiter(RateLimiterMode.Preview, token);
+ if (mode == RateLimiterMode.CrawlStatus) {
+ rateLimiter = getRateLimiter(RateLimiterMode.CrawlStatus, token);
+ } else {
+ rateLimiter = getRateLimiter(RateLimiterMode.Preview, token);
+ }
teamId = "preview";
} else {
normalizedApi = parseApi(token);