diff --git a/apps/web/pages/s/[...slugs]/index.tsx b/apps/web/pages/s/[...slugs]/index.tsx index 8060f8453d5e..4f6c72f790ee 100644 --- a/apps/web/pages/s/[...slugs]/index.tsx +++ b/apps/web/pages/s/[...slugs]/index.tsx @@ -262,13 +262,17 @@ Component.getProps = async (context) => { } } - if (isStandaloneTheme) { + try { return { page: { type: PageType.STANDALONE_PARENT_SUBPAGE, props: await StandaloneParentSubpage.getProps(modifiedContext), }, } + } catch (error) { + if (!(error instanceof CustomNextError)) { + throw error + } } return {