Skip to content

Commit 19a2ddb

Browse files
nrayburn-techsoedirgo
authored andcommitted
chore: Update readme with correct arguments for custom fetch
1 parent a46e823 commit 19a2ddb

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
@@ -71,7 +71,9 @@ import { createClient } from '@supabase/supabase-js'
7171

7272
// Provide a custom `fetch` implementation as an option
7373
const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {
74-
fetch: (...args) => fetch(...args),
74+
global: {
75+
fetch: (...args) => fetch(...args),
76+
},
7577
})
7678
```
7779

0 commit comments

Comments
 (0)