Skip to content

Commit

Permalink
redirection array doesn't need to get passed to page.
Browse files Browse the repository at this point in the history
closes #306
  • Loading branch information
ccorda committed Aug 2, 2024
1 parent b5c47f0 commit fa09dc2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/src/pages/[[...slug]].js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ export async function getStaticProps({
};
}

// Remove redirects from globals before returning to page to reduce page size
if (globals && globals.redirection) {
delete globals.redirection;
}

return {
props: {
globals: {
Expand Down

0 comments on commit fa09dc2

Please sign in to comment.