Skip to content

Commit 15d04ff

Browse files
committed
MPP-4282: (bugfix) removed hardcoded domains in prod
1 parent 2287d1a commit 15d04ff

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

frontend/src/apiMocks/mockData.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ export const mockIds = ["demo", "empty", "onboarding", "some", "full"] as const;
1010

1111
// This is the same for all mock users, at this time:
1212
export const mockedRuntimeData: RuntimeData = {
13-
FXA_ORIGIN: "https://fxa-mock.com",
14-
BASKET_ORIGIN: "https://basket-mock.com",
13+
// not sure if this is the mock url we want to use
14+
FXA_ORIGIN: "http://localhost/mock/fxa",
15+
BASKET_ORIGIN: "http://localhost/mock/basket",
1516
GOOGLE_ANALYTICS_ID: "UA-123456789-0",
1617
GA4_MEASUREMENT_ID: "G-YXT33S87LT",
1718
PERIODICAL_PREMIUM_PRODUCT_ID: "prod_123456789",

frontend/src/pages/_app.page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import ReactGa from "react-ga";
99
import { getL10n } from "../functions/getL10n";
1010
import { AddonDataContext, useAddonElementWatcher } from "../hooks/addon";
1111
import { ReactAriaI18nProvider } from "../components/ReactAriaI18nProvider";
12-
import { initialiseApiMocks } from "../apiMocks/initialise";
13-
import { mockIds } from "../apiMocks/mockData";
1412
import { useIsLoggedIn } from "../hooks/session";
1513
import { useMetrics } from "../hooks/metrics";
1614
import {
@@ -60,6 +58,9 @@ function MyApp({ Component, pageProps }: AppProps) {
6058
return;
6159
}
6260
(async () => {
61+
const { initialiseApiMocks } = await import("../apiMocks/initialise");
62+
const { mockIds } = await import("../apiMocks/mockData");
63+
6364
await initialiseApiMocks();
6465

6566
if (

0 commit comments

Comments
 (0)