sanity-io/get-it

Can't use with relative urls in a browser context

bjoerge opened this issue · 1 comments

The following fails with Uncaught Error: "/some/endpoint" is not a valid URL:

const request = getIt([jsonResponse()])

request('/some/endpoint') 

Is there any way configure get-it to allow both relative urls and absolute urls?

Closing as this doesn't seem to be a huge issue in practice