Hosted Quickstart Guide
mainTo deploy Chatbot UI to the cloud, you need to set up a Supabase backend and a Vercel frontend.
1. Backend Setup (Supabase)
- Create a new project at Supabase.
- In Project Settings > General, note the
Project RefandProject ID. - In Settings > API, note the
Project URLandAnon key(anon public) andService role key(service_role). - Enable Email in Authentication > Providers (disabling 'Confirm email' is recommended for personal use).
- Configure the migration file
supabase/migrations/20240108234540_setup.sql:project_url(line 53): Use your SupabaseProject URL.service_role_key(line 54): Use your SupabaseService role key.
- Link and push to Supabase:
supabase login supabase link --project-ref <project-id> supabase db push
2. Frontend Setup (Vercel)
- Import your GitHub repository to Vercel.
- Set Framework Preset to
Next.js. - Add the following Environment Variables:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYNEXT_PUBLIC_OLLAMA_URL(if using local Ollama models)OPENAI_API_KEY(optional)AZURE_OPENAI_API_KEY(optional)AZURE_OPENAI_ENDPOINT(optional)AZURE_GPT_45_VISION_NAME(optional)
- Click Deploy.
# Link your hosted project to Supabase
supabase link --project-ref <project-id>
# Push migrations to the live database
supabase db push