Skip to content

feat: add fetch option to createSupabaseApiPlatform for in-process transports#273

Draft
mattrossman wants to merge 2 commits into
mainfrom
mattrossman/ai-702-createsupabaseapiplatform-add-fetch-option-to-support-in
Draft

feat: add fetch option to createSupabaseApiPlatform for in-process transports#273
mattrossman wants to merge 2 commits into
mainfrom
mattrossman/ai-702-createsupabaseapiplatform-add-fetch-option-to-support-in

Conversation

@mattrossman
Copy link
Copy Markdown
Collaborator

Adds a fetch option to SupabaseApiPlatformOptions and createManagementApiClient, allowing callers to pass a custom fetch handler (e.g. app.fetch.bind(app) from a Hono app) instead of going through a real TCP connection.

Typed as (request: Request) => Response | Promise<Response> to match Hono and other web-standard handlers directly. The Promise.resolve coercion to satisfy openapi-fetch's narrower type happens internally at the createClient call site.

Closes AI-702

@mattrossman mattrossman added the publish-preview Runs `publish-preview` workflow to publish preview packages via https://pkg.pr.new/ label May 4, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 4, 2026

Open in StackBlitz

pnpm add https://pkg.pr.new/supabase-community/supabase-mcp/@supabase/mcp-server-postgrest@ec9d7e4
pnpm add https://pkg.pr.new/supabase-community/supabase-mcp/@supabase/mcp-server-supabase@ec9d7e4
pnpm add https://pkg.pr.new/supabase-community/supabase-mcp/@supabase/mcp-utils@ec9d7e4

commit: ec9d7e4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

publish-preview Runs `publish-preview` workflow to publish preview packages via https://pkg.pr.new/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant