refactor: move all envs related code into separate file (#4529)

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
This commit is contained in:
Alexandr Garbuzov
2025-10-25 13:12:41 +02:00
committed by martin-mfg
co-authored by Alexandr
parent 52abd14b00
commit 41f6ef299f
9 changed files with 22 additions and 15 deletions
@@ -6,5 +6,8 @@ const gistWhitelist = process.env.GIST_WHITELIST
? process.env.GIST_WHITELIST.split(",")
: undefined;
export { whitelist, gistWhitelist };
export default whitelist;
const excludeRepositories = process.env.EXCLUDE_REPO
? process.env.EXCLUDE_REPO.split(",")
: [];
export { whitelist, gistWhitelist, excludeRepositories };
-6
View File
@@ -1,6 +0,0 @@
const excludeRepositories = process.env.EXCLUDE_REPO
? process.env.EXCLUDE_REPO.split(",")
: [];
export { excludeRepositories };
export default excludeRepositories;