Skip to content

Commit

Permalink
hotfix: default host for events should always be production (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
alaisgomes committed Apr 1, 2024
1 parent 67adf29 commit 48fec5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/analytics/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { configFile } from "../utils/configFile.js";
import { HOST_CONFIG_NAME } from "../utils/constants.js";
import { HOST_CONFIG_NAME, DEFAULT_HOST } from "../utils/constants.js";
import {
DEVELOPMENT_SEGMENT_KEY,
PRODUCTION_SEGMENT_KEY
Expand All @@ -9,6 +9,6 @@ export const HAS_ASKED_OPT_IN_NAME = "has-asked-opt-in";
export const OPT_IN_NAME = "opt-in";

export const SEGMENT_API_KEY =
configFile.get(HOST_CONFIG_NAME) === "https://app.crowdbotics.com/"
configFile.get(HOST_CONFIG_NAME) === DEFAULT_HOST
? PRODUCTION_SEGMENT_KEY
: DEVELOPMENT_SEGMENT_KEY;

0 comments on commit 48fec5d

Please sign in to comment.