{
  "id": "supabase-launch",
  "provider": "supabase",
  "title": "Configure Supabase",
  "steps": [
    {
      "id": "supabase-project",
      "title": "Open Supabase dashboard",
      "instruction": "Create a project or open your existing Supabase project.",
      "openUrl": "https://supabase.com/dashboard"
    },
    {
      "id": "supabase-api-keys",
      "title": "API keys",
      "instruction": "Copy Project URL and anon/public key into .env.",
      "openUrl": "https://supabase.com/dashboard/project/_/settings/api",
      "pasteTarget": {
        "file": ".env",
        "keys": ["NEXT_PUBLIC_SUPABASE_URL", "NEXT_PUBLIC_SUPABASE_ANON_KEY"]
      }
    },
    {
      "id": "supabase-db-url",
      "title": "Database connection",
      "instruction": "Copy the connection string (use pooler for serverless). Server-side only — never expose in client code.",
      "openUrl": "https://supabase.com/dashboard/project/_/settings/database",
      "pasteTarget": {
        "file": ".env",
        "keys": ["DATABASE_URL"]
      }
    },
    {
      "id": "supabase-auth-urls",
      "title": "Auth URL configuration",
      "instruction": "Set Site URL to your Vercel preview or production URL. Add the same URL to Redirect URLs with /** wildcard.",
      "openUrl": "https://supabase.com/dashboard/project/_/auth/url-configuration"
    },
    {
      "id": "supabase-rls",
      "title": "Row Level Security",
      "instruction": "Enable RLS on tables that hold user data. Add policies for authenticated users.",
      "openUrl": "https://supabase.com/dashboard/project/_/auth/policies"
    },
    {
      "id": "supabase-migrate",
      "title": "Apply migrations",
      "instruction": "Run supabase db push or apply SQL migrations so production schema matches the repo.",
      "openUrl": "https://supabase.com/docs/guides/cli"
    }
  ]
}
