diff --git a/site/pages/[...pages].tsx b/site/pages/[...pages].tsx index a8a24b3aa..ddbd82a79 100644 --- a/site/pages/[...pages].tsx +++ b/site/pages/[...pages].tsx @@ -38,8 +38,9 @@ export async function getStaticProps({ const page = data?.page if (!page) { - // We throw to make sure this fails at build time as this is never expected to happen - throw new Error(`Page with slug '${slug}' not found`) + return { + notFound: true, + } } return {