Skip to content

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

Merge branch 'main' of https://github.com/mendableai/firecrawl

rafaelsideguidee0954d7f5969
diff --cc apps/test-suite/utils/supabase.ts
index 642a9b7c3,dcefa38cb..abf7fd78c
--- a/apps/test-suite/utils/supabase.ts
+++ b/apps/test-suite/utils/supabase.ts
@@@ -11,13 -12,13 +11,13 @@@ class SupabaseService
// Only initialize the Supabase client if both URL and Service Token are provided.
if (process.env.USE_DB_AUTHENTICATION === "false") {
// Warn the user that Authentication is disabled by setting the client to null
- Logger.warn(
+ console.warn(
- "\x1b[33mAuthentication is disabled. Supabase client will not be initialized.\x1b[0m"
+ "Authentication is disabled. Supabase client will not be initialized."
);
this.client = null;
} else if (!supabaseUrl || !supabaseServiceToken) {
- Logger.error(
+ console.error(
- "\x1b[31mSupabase environment variables aren't configured correctly. Supabase client will not be initialized. Fix ENV configuration or disable DB authentication with USE_DB_AUTHENTICATION env variable\x1b[0m"
+ "Supabase environment variables aren't configured correctly. Supabase client will not be initialized. Fix ENV configuration or disable DB authentication with USE_DB_AUTHENTICATION env variable"
);
} else {
this.client = createClient(supabaseUrl, supabaseServiceToken);
@@@ -36,6 -37,11 +36,11 @@@ export const supabase_service: Supabase
new SupabaseService(),
{
get: function (target, prop, receiver) {
+ if (process.env.USE_DB_AUTHENTICATION === "false") {
- Logger.debug(
++ console.debug(
+ "Attempted to access Supabase client when it's not configured."
+ );
+ }
const client = target.getClient();
// If the Supabase client is not initialized, intercept property access to provide meaningful error feedback.
if (client === null) {