Skip to content

Commit

Permalink
make sure environment variable is UPPERCASE
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectra1n committed Jan 23, 2025
1 parent ca2f391 commit f7df5d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ function getEnvironmentOverrides() {
const overrides: Record<string, Record<string, string>> = {};

for (const [key, value] of Object.entries(process.env)) {
if (!key.startsWith('TRILIUM_') || !value) {
// Check if key is not uppercase or doesn't start with TRILIUM_
if (!key.startsWith('TRILIUM_') || !value || key !== key.toUpperCase()) {
continue;
}

Expand Down

0 comments on commit f7df5d5

Please sign in to comment.