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("", {