SSR Fetch based on Next JS.
Use npm or Yarn
$ npm install ssr-fetch
$ yarn add ssr-fetch
// here the base url <url>/api
let login: any = await rPost('/login', { email, password })
// so after the use the ssr-fetch package the post request use like
// <url>/api/login
MIT