fix(preview): temporarily disable

This commit is contained in:
Gergő Móricz 2025-03-06 21:08:09 +01:00
parent 72d894c2a3
commit e6c3f20944

View File

@ -201,6 +201,8 @@ export async function supaAuthenticateUser(
let chunk: AuthCreditUsageChunk | null = null;
let plan: PlanType = "free";
if (token == "this_is_just_a_preview_token") {
throw new Error("Unauthenticated Playground calls are temporarily disabled due to abuse. Please sign up.");
if (mode == RateLimiterMode.CrawlStatus) {
rateLimiter = getRateLimiter(RateLimiterMode.CrawlStatus, token);
} else if (mode == RateLimiterMode.ExtractStatus) {