move hard-coded env vars to Home.js

This commit is contained in:
martin-mfg
2025-10-09 09:03:01 +02:00
parent 561f4dd7b9
commit aa3442f0b9
2 changed files with 5 additions and 6 deletions
@@ -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: {} };
}
+5
View File
@@ -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();