Skip to content

Commit 7a44e5b

Browse files
committed
Add redirect to root
1 parent 405e7c5 commit 7a44e5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gatsby-node.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ exports.createPages = async ({graphql, boundActionCreators}) => {
3333
const docsTemplate = resolve('./src/templates/docs.js');
3434
const tutorialTemplate = resolve('./src/templates/tutorial.js');
3535

36+
// Redirect /index.html to root.
37+
createRedirect({
38+
fromPath: '/index.html',
39+
redirectInBrowser: true,
40+
toPath: '/',
41+
});
42+
3643
const allMarkdown = await graphql(
3744
`
3845
{

0 commit comments

Comments
 (0)