diff --git a/frontend/frontend/src/dotenv-browser-stub.js b/frontend/frontend/src/dotenv-browser-stub.js index 912cd713..32796456 100644 --- a/frontend/frontend/src/dotenv-browser-stub.js +++ b/frontend/frontend/src/dotenv-browser-stub.js @@ -1,10 +1,4 @@ // Safe browser stub for dotenv export function config() { - window.process = { - env: { - PAT_1: 'myDummyPAT', - }, - }; - console.log('env var has been set'); return { parsed: {} }; } diff --git a/frontend/frontend/src/pages/Home/Home.js b/frontend/frontend/src/pages/Home/Home.js index b8893412..b94683b4 100644 --- a/frontend/frontend/src/pages/Home/Home.js +++ b/frontend/frontend/src/pages/Home/Home.js @@ -140,6 +140,11 @@ const HomeScreen = () => { }); const res = createMockRes(); try { + window.process = { + env: { + PAT_1: 'myDummyPAT', + }, + }; await router(req, res); const body = res._getBody(); const status = res._getStatusCode();