File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
TYPESENSE_API_URL = https://o89yhjf824.execute-api.us-east-1.amazonaws.com/search
2
+ FUNCTIONS_API_BASE = https://us-central1-digital-testimony-dev.cloudfunctions.net
Original file line number Diff line number Diff line change 1
- TYPESENSE_API_URL=https://yyd73lsw3h.execute-api.us-east-1.amazonaws.com/search
1
+ TYPESENSE_API_URL=https://yyd73lsw3h.execute-api.us-east-1.amazonaws.com/search
2
+ FUNCTIONS_API_BASE=https://us-central1-digital-testimony-prod.cloudfunctions.net
Original file line number Diff line number Diff line change @@ -154,10 +154,11 @@ const submitTranscription = async ({
154
154
// test with: "https://assemblyaiusercontent.com/playground/aKUqpEtmYmI.flac",
155
155
maybeVideoUrl ,
156
156
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` ,
161
162
speaker_labels : true ,
162
163
webhook_auth_header_name : "x-maple-webhook" ,
163
164
webhook_auth_header_value : newToken
You can’t perform that action at this time.
0 commit comments