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 }
hemengke1997 / next-fetchx Goto Github PK
View Code? Open in Web Editor NEWfetch for nextjs
License: MIT License