move hard-coded env vars to constants.js

This commit is contained in:
martin-mfg
2025-10-09 09:07:04 +02:00
parent aa3442f0b9
commit c593cd89f9
2 changed files with 6 additions and 5 deletions
+6
View File
@@ -31,3 +31,9 @@ export const BACKEND_URL = PROD
: 'http://localhost:8000';
export const CURR_YEAR = 2024;
window.process = {
env: {
PAT_1: 'myDummyPAT',
},
};
-5
View File
@@ -140,11 +140,6 @@ const HomeScreen = () => {
});
const res = createMockRes();
try {
window.process = {
env: {
PAT_1: 'myDummyPAT',
},
};
await router(req, res);
const body = res._getBody();
const status = res._getStatusCode();