managementHandler(corsair) returns a handler with the signature (request: Request) => Promise<Response>. Any framework whose routes speak the Fetch API calls it directly — no adapter needed.
Configure Corsair
corsair.ts
Mount the handler
- SvelteKit
- Remix
- Astro
- Nuxt
- Workers / Bun / Deno
src/routes/api/corsair/[...path]/+server.ts
Run and go green
On the first request to/api/corsair, your app self-registers its delivery URL with Hub. See Delivery URLs.
Backend not in JavaScript? Corsair’s SDK is TypeScript-only. Integrate over the Hub REST API instead.