diff --git a/src/next-lib.ts b/src/next-lib.ts index 22873813..f90beced 100644 --- a/src/next-lib.ts +++ b/src/next-lib.ts @@ -1,4 +1,3 @@ -import axios from 'axios' import { NextPageContext } from 'next' export interface IResponseItems { @@ -7,16 +6,6 @@ export interface IResponseItems { prevPage: number } -export async function requestGet(url: string, defaultResponse: T): Promise { - try { - const res = await axios.get(url) - - return res.data - } catch (e) { - return defaultResponse - } -} - /** * This wrapper prevents fetching api request in static export mode and production environment * because nextjs call getInitialProps on the client side