set dummy env var from craco

This commit is contained in:
martin-mfg
2025-10-08 14:21:30 +02:00
parent 30bcee3998
commit 25a1a81332
+3 -1
View File
@@ -23,7 +23,9 @@ module.exports = {
};
// Turn { KEY: "value" } into { "process.env.KEY": JSON.stringify("value") }
const env = {};
const env = {
PAT_1: 'myDummyPAT',
};
const envKeys = Object.keys(env).reduce((prev, next) => {
prev[`process.env.${next}`] = JSON.stringify(env[next]);
return prev;