chore: Set daily video testing meeting link to env var (#20359)
This commit is contained in:
1 parent
ecd85cd15a
commit
9b952fd922
4 files changed
+9
-2
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 { CAL_VIDEO_MEETING_LINK_FOR_TESTING } from "@calcom/lib/constants";
|
||||
import { isENVDev } from "@calcom/lib/env";
|
||||
import { BookingRepository } from "@calcom/lib/server/repository/booking";
|
||||
import { OrganizationRepository } from "@calcom/lib/server/repository/organization";
|
||||
@@ -29,9 +30,9 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
|
||||
|
||||
// Below if block is for local testing purposes only
|
||||
// STARTS------------------------------------------------------------------------------
|
||||
if (booking?.references[0] && isENVDev) {
|
||||
if (booking?.references[0] && isENVDev && CAL_VIDEO_MEETING_LINK_FOR_TESTING) {
|
||||
// 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";
|
||||
booking.references[0].meetingUrl = CAL_VIDEO_MEETING_LINK_FOR_TESTING;
|
||||
}
|
||||
// ENDS--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in new issue
Block a user