From fa09dc2880d55cbb28550b2c6edca42b79494b7d Mon Sep 17 00:00:00 2001 From: Cameron Corda Date: Fri, 2 Aug 2024 07:07:29 -0700 Subject: [PATCH] redirection array doesn't need to get passed to page. closes #306 --- website/src/pages/[[...slug]].js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/src/pages/[[...slug]].js b/website/src/pages/[[...slug]].js index 7db1a3d..16e1c0d 100644 --- a/website/src/pages/[[...slug]].js +++ b/website/src/pages/[[...slug]].js @@ -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: {