* Handle normal ownership routing * Skip contact owner check if true * Fix typos * Call getting contact owner in promise.all in handleResponse * Pass crm contact owner data to params * Add crm contact params * Only get CRM owner calls if params don't exist * Handle if properties don't exist * Fix typo * Pass CRM specific variables to getServerSideProps * Remove logs * Type fixes * Use `wrapGetServerSIdePropsWIthSentry` in router getServerSideProps * Add sentry monitoring * Type fixes * Type fix * Type fixes * Update imports for sentryWrapper --------- Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
12 lines
384 B
TypeScript
12 lines
384 B
TypeScript
import { wrapGetServerSidePropsWithSentry } from "@sentry/nextjs";
|
|
import type { GetServerSidePropsContext } from "next";
|
|
|
|
import { getRoutedUrl } from "@calcom/lib/server/getRoutedUrl";
|
|
|
|
export const getServerSideProps = wrapGetServerSidePropsWithSentry(async function getServerSideProps(
|
|
context: GetServerSidePropsContext
|
|
) {
|
|
return await getRoutedUrl(context);
|
|
},
|
|
"/router");
|