Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): gate transcription features on ASSEMBLY_API_KEY

Richie McIlroya776d364a539
diff --git a/apps/web/actions/videos/get-status.ts b/apps/web/actions/videos/get-status.ts
index 95dda29d2..7a4b62266 100644
--- a/apps/web/actions/videos/get-status.ts
+++ b/apps/web/actions/videos/get-status.ts
@@ -61,7 +61,7 @@ export async function getVideoStatus(
const metadata: VideoMetadata = (video.metadata as VideoMetadata) || {};
- if (!video.transcriptionStatus && serverEnv().DEEPGRAM_API_KEY) {
+ if (!video.transcriptionStatus && serverEnv().ASSEMBLY_API_KEY) {
const activeUpload = await db()
.select({
videoId: videoUploads.videoId,
diff --git a/apps/web/app/s/[videoId]/page.tsx b/apps/web/app/s/[videoId]/page.tsx
index e4572e0f3..d126db52e 100644
--- a/apps/web/app/s/[videoId]/page.tsx
+++ b/apps/web/app/s/[videoId]/page.tsx
@@ -557,7 +557,7 @@ async function AuthorizedContent({
const env = serverEnv();
const transcriptionGenerationAvailable =
!video.isScreenshot &&
- Boolean(env.DEEPGRAM_API_KEY) &&
+ Boolean(env.ASSEMBLY_API_KEY) &&
!rules.settings.disableTranscript;
const aiProviderAvailable = Boolean(env.GROQ_API_KEY || env.OPENAI_API_KEY);