diff --git a/apps/web/pages/[user]/[type].tsx b/apps/web/pages/[user]/[type].tsx index daa3a82598..664182fab5 100644 --- a/apps/web/pages/[user]/[type].tsx +++ b/apps/web/pages/[user]/[type].tsx @@ -362,6 +362,13 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { const { user: userParam } = paramsSchema.parse(context.params); // dynamic groups are not generated at build time, but otherwise are probably cached until infinity. const isDynamicGroup = getUsernameList(userParam).length > 1; + console.log( + "DynamicGroupLog", + JSON.stringify({ + userParam, + isDynamicGroup, + }) + ); if (isDynamicGroup) { return await getDynamicGroupPageProps(context); } else { diff --git a/apps/web/pages/new-booker/[user]/[type].tsx b/apps/web/pages/new-booker/[user]/[type].tsx index d74a879baf..b1dddb8ddc 100644 --- a/apps/web/pages/new-booker/[user]/[type].tsx +++ b/apps/web/pages/new-booker/[user]/[type].tsx @@ -156,6 +156,13 @@ const paramsSchema = z.object({ type: z.string(), user: z.string() }); export const getServerSideProps = async (context: GetServerSidePropsContext) => { const { user } = paramsSchema.parse(context.params); const isDynamicGroup = getUsernameList(user).length > 1; + console.log( + "DynamicGroupLog", + JSON.stringify({ + user, + isDynamicGroup, + }) + ); return isDynamicGroup ? await getDynamicGroupPageProps(context) : await getUserPageProps(context); };