Skip to content

Commit

Permalink
feat: add redirect for sitemap and downgrade gatsby-plugin-mdx version
Browse files Browse the repository at this point in the history
Signed-off-by: Lee Calcote <[email protected]>
  • Loading branch information
leecalcote committed Jan 5, 2025
1 parent 3073658 commit 1aaf9e1
Show file tree
Hide file tree
Showing 3 changed files with 1,139 additions and 2,610 deletions.
7 changes: 6 additions & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,12 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
redirectInBrowser: true,
isPermanent: true,
});

createRedirect({
fromPath: "/sitemap.xml",
toPath: "/sitemap-index.xml",
redirectInBrowser: true,
isPermanent: true,
});
// Create Pages
const { createPage } = actions;

Expand Down
Loading

0 comments on commit 1aaf9e1

Please sign in to comment.