Vollständige Next.js 15 Portfolio-Website mit: - Blog-System mit 100+ Artikeln - Supabase-Integration - Responsive Design mit Tailwind CSS - TypeScript-Konfiguration - Testing-Setup mit Vitest und Playwright Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
440 B
TypeScript
18 lines
440 B
TypeScript
/**
|
|
* Supabase Browser Client
|
|
* Client-side Supabase client for authentication and database access
|
|
*/
|
|
|
|
import { createBrowserClient } from '@supabase/ssr';
|
|
|
|
/**
|
|
* Creates a Supabase browser client instance
|
|
* @returns Supabase client configured with environment variables
|
|
*/
|
|
export function createClient() {
|
|
return createBrowserClient(
|
|
process.env.NEXT_PUBLIC_SUPABASE_URL!,
|
|
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
|
|
);
|
|
}
|