mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-18 06:17:21 +00:00
- Create server/auth.ts with requireAuth, optionalAuth, requireAdmin middleware - Fix os.tsx: add Target/Check imports, fix useLayout->usePlatformLayout, fix achievements types - Fix game-routes.ts: add all Request/Response types, fix session access - Fix revenue.ts: org_id -> organization_id - Fix votes.ts: currentSplit scope, created_by type - Fix dashboard.ts: remove unsupported .distinct() method - Fix game-dev-apis.ts: header/body type assertions - Upgrade api/execute.ts: add Python simulation, JSON validation, HTML/CSS passthrough - Upgrade app-registry.ts: full implementation with 15 apps, RBAC, categories - Clean up Java heap error logs
15 lines
637 B
TypeScript
15 lines
637 B
TypeScript
import dotenv from "dotenv";
|
|
|
|
// Load environment variables
|
|
dotenv.config({ path: './.env' });
|
|
|
|
import { createClient } from '@supabase/supabase-js';
|
|
|
|
const supabaseUrl = 'https://kmdeisowhtsalsekkzqd.supabase.co';
|
|
const supabaseKey = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImttZGVpc293aHRzYWxzZWtrenFkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTM3Mzc2NTIsImV4cCI6MjA2OTMxMzY1Mn0.2mvk-rDZnHOzdx6Cgcysh51a3cflOlRWO6OA1Z5YWuQ';
|
|
|
|
if (!supabaseUrl || !supabaseKey) {
|
|
throw new Error('Missing SUPABASE_URL or SUPABASE_ANON_KEY environment variables');
|
|
}
|
|
|
|
export const supabase = createClient(supabaseUrl, supabaseKey);
|