feat: upgrade @daily libs (#20348)

* upgrade @daily libs

* install peer dep

* add code for local testing
This commit is contained in:
Benny Joo authored and GitHub committed 2025-03-25 17:27:00 +00:00
1 parent 8a18e167e9
commit d131d58b19
4 files changed
+91 -93

No files matched your search

@@ -8,6 +8,7 @@ import {
} from "@calcom/app-store/dailyvideo/lib/VideoApiAdapter";
import { getServerSession } from "@calcom/features/auth/lib/getServerSession";
import { getCalVideoReference } from "@calcom/features/get-cal-video-reference";
import { isENVDev } from "@calcom/lib/env";
import { BookingRepository } from "@calcom/lib/server/repository/booking";
import { OrganizationRepository } from "@calcom/lib/server/repository/organization";
import { UserRepository } from "@calcom/lib/server/repository/user";
@@ -26,6 +27,14 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
bookingUid: context.query.uid as string,
});
// Below if block is for local testing purposes only
// STARTS------------------------------------------------------------------------------
if (booking?.references[0] && isENVDev) {
// meetingUrl is `null` in dev env, so setting a dummy meetingUrl (it's a past but real meeting link in production env)
booking.references[0].meetingUrl = "https://app.cal.com/video/wvsSuNC8r9ZScPhA6JKpiL";
}
// ENDS--------------------------------------------------------------------------------
if (!booking || booking.references.length === 0 || !booking.references[0].meetingUrl) {
return {
redirect: {