mirror of
https://github.com/supabase/supabase.git
synced 2026-07-04 00:44:42 +08:00
Supabase with Cloudflare Workers
supabase-js uses the cross-fetch library to make HTTP requests, which has issues on Cloudflare Workers.
To solve this we can use Cloudflare Workers' in-built fetch method to make HTTP requests using the optional fetch parameter in the supabase-js client.
Source: https://supabase.com/docs/reference/javascript/initializing#custom-fetch-implementation
Credits
This example was originally created by @nascode.