/ssr-fetch

SSR Fetch for Next JS

Primary LanguageJavaScript

"Buy Me A Coffee"

Introduction

SSR Fetch based on Next JS.

Installation

Use npm or Yarn

$ npm install ssr-fetch
$ yarn add ssr-fetch

Example

// 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

Thank you.

License

MIT