Skip to content

Commit c429fe4

Browse files
feat: Return URL for any other stage than production
1 parent 2228da0 commit c429fe4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/services/SendReleaseDeploymentStatusService.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ export class SendReleaseDeploymentStatusService {
6464
}
6565

6666
private async getURL({ name }: Environment): Promise<string> {
67-
if (name.toLowerCase() === process.env.ENVIRONMENT_NAME?.toLowerCase()) {
67+
if (
68+
name.toLowerCase() !==
69+
process.env.PRODUCTION_ENVIRONMENT_NAME?.toLowerCase()
70+
) {
6871
const axiosURL = `${process.env.DEPLOY_PLATFORM_URL}`;
6972

7073
const {

0 commit comments

Comments
 (0)