From 6998160d57338e29c93e9d3d9f5e8a8851554f93 Mon Sep 17 00:00:00 2001 From: surajondev Date: Wed, 17 Aug 2022 09:36:31 +0530 Subject: [PATCH] adding sitemap --- client/gatsby-config.js | 7 +++++++ client/gatsby-node.js | 9 --------- client/package.json | 6 +++--- 3 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 client/gatsby-config.js delete mode 100644 client/gatsby-node.js diff --git a/client/gatsby-config.js b/client/gatsby-config.js new file mode 100644 index 0000000..d6775ac --- /dev/null +++ b/client/gatsby-config.js @@ -0,0 +1,7 @@ +module.exports = { + siteMetadata: { + // If you didn't use the resolveSiteUrl option this needs to be set + siteUrl: `https://web3-roadmap.netlify.app`, + }, + plugins: [`gatsby-plugin-sitemap`] + } \ No newline at end of file diff --git a/client/gatsby-node.js b/client/gatsby-node.js deleted file mode 100644 index 6853a3e..0000000 --- a/client/gatsby-node.js +++ /dev/null @@ -1,9 +0,0 @@ -exports.onCreateWebpackConfig = args => { - args.actions.setWebpackConfig({ - module :{ - siteMetadata: { - siteUrl: `https://web3-roadmap.netlify.app/`, - } - }, - plugins: [`gatsby-plugin-sitemap`] -})} \ No newline at end of file diff --git a/client/package.json b/client/package.json index b74ca18..9682c7c 100644 --- a/client/package.json +++ b/client/package.json @@ -4,9 +4,9 @@ "description": "Web3 Roadmap and free Resources to learn and ace in Web3", "main": "index.js", "scripts": { - "docz:dev": "docz dev", - "docz:build": "docz build", - "docz:serve": "docz build && docz serve" + "dev": "docz dev", + "build": "docz build", + "serve": "docz build && docz serve" }, "keywords": [], "author": "",