ExTapia Projects — Setup required

Aplikasi live tapi belum ter-link ke Supabase. Ikuti langkah di bawah untuk aktifkan.

Supabase belum di-config

Frontend & Workers CF sudah deployed di extapia-projects-web.pages.dev, tapi butuh Supabase project untuk auth + database.

  1. 1. Buat Supabase project

    Signup di supabase.com/dashboard/new . Pilih region Southeast Asia (Singapore). Free tier cukup.

  2. 2. Apply migrations

    cd extapia-projects
    pnpm supabase login
    pnpm supabase link --project-ref YOUR_REF
    pnpm supabase db push
  3. 3. Set 2 env variable di Cloudflare Pages

    Buka Pages dashboard → project extapia-projects-web → Settings → Environment variables. Set untuk kedua env (Production + Preview):

    • PUBLIC_SUPABASE_URL = https://xxx.supabase.co
    • PUBLIC_SUPABASE_ANON_KEY = anon key dari Project Settings → API

    Untuk Worker secret (juga di dashboard Workers):

    wrangler secret put SUPABASE_SERVICE_ROLE --env=dev --config workers/notification/wrangler.toml
    wrangler secret put SUPABASE_SERVICE_ROLE --env=production --config workers/notification/wrangler.toml
    # repeat for cron worker + realtime worker (kalau butuh RPC/RLS bypass)
  4. 4. Enable OAuth di Supabase

    Supabase dashboard → Authentication → Providers. Enable Google/GitHub/Microsoft. Add Redirect URLs:

    https://dev-projects.extapia.com/auth/callback
    https://projects.extapia.com/auth/callback
    http://localhost:5173/auth/callback
  5. 5. Redeploy Pages

    # Kalau env sudah di-set di dashboard, Pages otomatis pakai untuk deploy berikut
    cd extapia-projects
    pnpm build && wrangler pages deploy .svelte-kit/cloudflare --project-name=extapia-projects-web --branch=dev

    Refresh page ini. Kalau sukses, akan redirect ke /auth/login otomatis.

Detail lengkap ada di STATUS.md di repository.