Skip to content

Commit

Permalink
api: Use livepeer.com domain for regional nukes
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Aug 13, 2022
1 parent 23ba670 commit f6e7530
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/api/src/controllers/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,11 @@ export async function terminateStreamReq(
const protocol =
req.headers["x-forwarded-proto"] === "https" ? "https" : "http";

const regionalUrl = `${protocol}://${stream.region}.${req.frontendDomain}/api/stream/${stream.id}/terminate`;
const backendDomain = req.frontendDomain.replace(
"livepeer.studio",
"livepeer.com"
);
const regionalUrl = `${protocol}://${stream.region}.${backendDomain}/api/stream/${stream.id}/terminate`;
const redRes = await fetch(regionalUrl, {
method: "DELETE",
headers: {
Expand Down

0 comments on commit f6e7530

Please sign in to comment.