Browse Source

Add redirect to root

main
Tay Yang Shun 7 years ago
parent
commit
7a44e5ba7a
  1. 7
      gatsby-node.js

7
gatsby-node.js

@ -33,6 +33,13 @@ exports.createPages = async ({graphql, boundActionCreators}) => {
const docsTemplate = resolve('./src/templates/docs.js');
const tutorialTemplate = resolve('./src/templates/tutorial.js');
// Redirect /index.html to root.
createRedirect({
fromPath: '/index.html',
redirectInBrowser: true,
toPath: '/',
});
const allMarkdown = await graphql(
`
{

Loading…
Cancel
Save