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

Commit

Permalink
marketingHost hardcode
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri committed Sep 3, 2022
1 parent 8e58a80 commit 7ccf459
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/profcomff-root-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ const applications = constructApplications({
const layoutEngine = constructLayoutEngine({ routes, applications });

// Marketing identification
const marketingHost = !process.env.production
? "https://marketing.api.test.profcomff.com/v1"
: "https://marketing.api.profcomff.com/v1";
const marketingHost =
window.location.host === "app.profcomff.com"
? "https://marketing.api.profcomff.com/v1"
: "https://marketing.api.test.profcomff.com/v1";
if (!localStorage.getItem("marketing-id")) {
fetch(`${marketingHost}/user`, {
method: "POST",
Expand Down

0 comments on commit 7ccf459

Please sign in to comment.