Skip to content

Commit 1bba393

Browse files
committed
add functions api base env var
1 parent c68c3d4 commit 1bba393

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

functions/src/events/scrapeEvents.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,11 @@ const submitTranscription = async ({
154154
// test with: "https://assemblyaiusercontent.com/playground/aKUqpEtmYmI.flac",
155155
maybeVideoUrl,
156156
webhook_url:
157-
// test with: "https://ngrokid.ngrok-free.app/demo-dtp/us-central1/transcription",
158-
process.env.NODE_ENV === "development"
159-
? "https://us-central1-digital-testimony-dev.cloudfunctions.net/transcription"
160-
: "https://us-central1-digital-testimony-prod.cloudfunctions.net/transcription",
157+
// make sure process.env.FUNCTIONS_API_BASE equals
158+
// https://us-central1-digital-testimony-prod.cloudfunctions.net
159+
// on prod. test with:
160+
// "https://ngrokid.ngrok-free.app/demo-dtp/us-central1/transcription",
161+
`${process.env.FUNCTIONS_API_BASE}/transcription`,
161162
speaker_labels: true,
162163
webhook_auth_header_name: "x-maple-webhook",
163164
webhook_auth_header_value: newToken

0 commit comments

Comments
 (0)