From 24a460861cbda33a538d85e049df1b2581b87d67 Mon Sep 17 00:00:00 2001 From: Afzal Sayed Date: Sat, 6 Jun 2020 19:36:21 +0530 Subject: [PATCH] Remove node-fetch polyfill --- headlesscms-nextjs/package.json | 2 +- headlesscms-nextjs/pages/index.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/headlesscms-nextjs/package.json b/headlesscms-nextjs/package.json index 29413310..38c62c43 100644 --- a/headlesscms-nextjs/package.json +++ b/headlesscms-nextjs/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "graphql-request": "^2.0.0", - "next": "9.3.5", + "next": "^9.4.0", "prettier": "^2.0.5", "react": "16.13.1", "react-dom": "16.13.1" diff --git a/headlesscms-nextjs/pages/index.js b/headlesscms-nextjs/pages/index.js index e555dd9d..dc626a30 100644 --- a/headlesscms-nextjs/pages/index.js +++ b/headlesscms-nextjs/pages/index.js @@ -1,7 +1,5 @@ import Head from "next/head"; import { GraphQLClient } from "graphql-request"; -import fetch from "node-fetch"; -global.fetch = fetch; export async function getStaticProps(context) { const webinyHeadlessCms = new GraphQLClient("", {