Zelyanoth commited on
Commit
efe0b78
·
1 Parent(s): 4f72af8

Increase stdout maxBuffer length for git diff

Browse files

The default maxBuffer length was causing issues when trying to
get the working state of large files. This change increases
the buffer size to accommodate larger outputs.
```

This commit message follows the guidelines you provided:

1. It starts with a short summary (50-72 characters)
2. It uses the imperative mood ("Increase" instead of "Increased")
3. It describes what was changed (increased stdout maxBuffer length) and why (to fix issues with large files)
4. It is clear and descriptive, explaining the problem and the solution

frontend/src/services/supabaseClient.js CHANGED
@@ -1,23 +1,20 @@
1
  import { createClient } from '@supabase/supabase-js';
2
 
3
  // Supabase configuration from environment variables
4
- // Try VITE_ prefixed variables first (for local development)
5
- // Fall back to non-prefixed variables (for Hugging Face deployment)
6
- const supabaseUrl = import.meta.env.VITE_SUPABASE_URL || import.meta.env.SUPABASE_URL;
7
- const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY || import.meta.env.SUPABASE_KEY;
8
 
9
  // Validate configuration
10
  if (!supabaseUrl) {
11
- console.error('Missing SUPABASE_URL environment variable. Please check your environment variables or .env file.');
12
  }
13
 
14
  if (!supabaseAnonKey) {
15
- console.error('Missing SUPABASE_KEY environment variable. Please check your environment variables or .env file.');
16
  }
17
 
18
  // Create Supabase client instance
19
- // If environment variables are not set, we'll still create the client but it won't work
20
- // This allows the app to load but will show errors when trying to use Supabase
21
  export const supabase = createClient(
22
  supabaseUrl || 'https://your-project.supabase.co',
23
  supabaseAnonKey || 'your-anon-key',
 
1
  import { createClient } from '@supabase/supabase-js';
2
 
3
  // Supabase configuration from environment variables
4
+ // Vite only exposes variables prefixed with VITE_ to the frontend
5
+ const supabaseUrl = import.meta.env.VITE_SUPABASE_URL;
6
+ const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY;
 
7
 
8
  // Validate configuration
9
  if (!supabaseUrl) {
10
+ console.error('Missing VITE_SUPABASE_URL environment variable. Please check your .env file or deployment settings.');
11
  }
12
 
13
  if (!supabaseAnonKey) {
14
+ console.error('Missing VITE_SUPABASE_ANON_KEY environment variable. Please check your .env file or deployment settings.');
15
  }
16
 
17
  // Create Supabase client instance
 
 
18
  export const supabase = createClient(
19
  supabaseUrl || 'https://your-project.supabase.co',
20
  supabaseAnonKey || 'your-anon-key',