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
- Host: GitHub
- URL: https://github.com/hemengke1997/next-fetchx
- Owner: hemengke1997
- License: mit
- Created: 2023-04-14T04:24:47.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-30T08:01:08.000Z (almost 2 years ago)
- Last Synced: 2025-03-24T05:45:42.893Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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 }
```