Supabase Configuration Required

This chat application requires Supabase to be configured. Please follow these steps:

1. Add Supabase Integration

Click the "Add Supabase" button in the integrations panel to connect your Supabase project.

2. Run Database Scripts

Execute the SQL scripts in the scripts folder to set up the database schema:

  • 01-create-tables.sql
  • 02-setup-rls.sql (or 04-simplified-policies.sql for testing)
  • 03-create-functions.sql

Required Environment Variables:

NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key

Once configured, click refresh to start using the chat application.

Built with v0