Skip to content

Commit ff790ca

Browse files
docs: update custom fetch example (#235)
1 parent 76a2926 commit ff790ca

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
@@ -38,7 +38,9 @@ const postgrest = new PostgrestClient(REST_URL)
3838
import { PostgrestClient } from '@supabase/postgrest-js'
3939

4040
const REST_URL = 'http://localhost:3000'
41-
const postgrest = new PostgrestClient(REST_URL, { fetch: fetch })
41+
const postgrest = new PostgrestClient(REST_URL, {
42+
fetch: (...args) => fetch(...args),
43+
})
4244
```
4345

4446
## License

0 commit comments

Comments
 (0)