feat: upgrade @daily libs (#20348)
* upgrade @daily libs * install peer dep * add code for local testing
This commit is contained in:
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: {
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
"@calcom/trpc": "*",
|
||||
"@calcom/tsconfig": "*",
|
||||
"@calcom/ui": "*",
|
||||
"@daily-co/daily-js": "^0.59.0",
|
||||
"@daily-co/daily-react": "^0.17.2",
|
||||
"@daily-co/daily-js": "^0.76.0",
|
||||
"@daily-co/daily-react": "^0.22.0",
|
||||
"@dub/analytics": "^0.0.15",
|
||||
"@formkit/auto-animate": "1.0.0-beta.5",
|
||||
"@glidejs/glide": "^3.5.2",
|
||||
@@ -91,6 +91,7 @@
|
||||
"ical.js": "^1.4.0",
|
||||
"ics": "^2.37.0",
|
||||
"jose": "^4.13.1",
|
||||
"jotai": "^2.12.2",
|
||||
"jsdom": "^22.0.0",
|
||||
"kbar": "^0.1.0-beta.36",
|
||||
"libphonenumber-js": "^1.11.18",
|
||||
|
||||
Reference in new issue
Block a user