An open API service indexing awesome lists of open source software.

https://github.com/hemengke1997/next-fetchx

fetch for nextjs
https://github.com/hemengke1997/next-fetchx

Last synced: 2 months ago
JSON representation

fetch for nextjs

Awesome Lists containing this project

README

        

# next-fetchx

## Usage

```ts
import { NextFetchx } from 'next-fetchx'

const nextFetchx = new NextFetchx(
{
credentials: 'include',
requestOptions: {
apiUrl: 'http://localhost:3000/api',
},
},
)

const fetchx = nextFetchx.fetch.bind(nextFetchx)

export { fetchx }
```