Skip to content

Commit abec733

Browse files
docs: Update custom fetch example (#329)
1 parent 7f9c91c commit abec733

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ Then you can use it from a global `supabase` variable:
5555
import { createClient } from '@supabase/supabase-js'
5656

5757
// Provide a custom `fetch` implementation as an option
58-
const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', { fetch: fetch })
58+
const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {
59+
fetch: (...args) => fetch(...args),
60+
})
5961
```
6062

6163
## Sponsors

0 commit comments

Comments
 (0)