Skip to content

Commit

Permalink
chore: update check for review env (#4553)
Browse files Browse the repository at this point in the history
update check for review env
  • Loading branch information
timarney authored Nov 1, 2024
1 parent 786e7b4 commit 04910d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/integration/freshdesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export const formatTicketData = ({
};

export const tagHost = (host: string) => {
if (host.includes("staging" || process.env.REVIEW_ENV)) {
if (
host.includes("staging") ||
(process.env.REVIEW_ENV && host.includes(process.env.REVIEW_ENV))
) {
return "Forms_Staging";
} else if (host.includes("localhost") || host === "") {
return "Forms_Dev";
Expand Down

0 comments on commit 04910d0

Please sign in to comment.