Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Revert "temp: flow everything to main db, no replica"
Gergő Móriczae690eb572f1
diff --git a/apps/api/src/services/supabase.ts b/apps/api/src/services/supabase.tsindex ec204b638..5eb11d1af 100644--- a/apps/api/src/services/supabase.ts+++ b/apps/api/src/services/supabase.ts@@ -69,22 +69,20 @@ export const supabase_service: SupabaseClient = new Proxy(serv, {},}) as unknown as SupabaseClient;-// export const supabase_rr_service: SupabaseClient = new Proxy(serv, {-// get: function (target, prop, receiver) {-// const client = target.getRRClient();-// // If the Supabase client is not initialized, intercept property access to provide meaningful error feedback.-// if (client === null) {-// return () => {-// throw new Error("Supabase RR client is not configured.");-// };-// }-// // Direct access to SupabaseService properties takes precedence.-// if (prop in target) {-// return Reflect.get(target, prop, receiver);-// }-// // Otherwise, delegate access to the Supabase client.-// return Reflect.get(client, prop, receiver);-// },-// }) as unknown as SupabaseClient;--export const supabase_rr_service = supabase_service;+export const supabase_rr_service: SupabaseClient = new Proxy(serv, {+ get: function (target, prop, receiver) {+ const client = target.getRRClient();+ // If the Supabase client is not initialized, intercept property access to provide meaningful error feedback.+ if (client === null) {+ return () => {+ throw new Error("Supabase RR client is not configured.");+ };+ }+ // Direct access to SupabaseService properties takes precedence.+ if (prop in target) {+ return Reflect.get(target, prop, receiver);+ }+ // Otherwise, delegate access to the Supabase client.+ return Reflect.get(client, prop, receiver);+ },+}) as unknown as SupabaseClient;