Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

Commit 7ccf459

Browse files
committed
marketingHost hardcode
1 parent 8e58a80 commit 7ccf459

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/profcomff-root-config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ const applications = constructApplications({
1717
const layoutEngine = constructLayoutEngine({ routes, applications });
1818

1919
// Marketing identification
20-
const marketingHost = !process.env.production
21-
? "https://marketing.api.test.profcomff.com/v1"
22-
: "https://marketing.api.profcomff.com/v1";
20+
const marketingHost =
21+
window.location.host === "app.profcomff.com"
22+
? "https://marketing.api.profcomff.com/v1"
23+
: "https://marketing.api.test.profcomff.com/v1";
2324
if (!localStorage.getItem("marketing-id")) {
2425
fetch(`${marketingHost}/user`, {
2526
method: "POST",

0 commit comments

Comments
 (0)