Skip to content

Commit

Permalink
fix: add env alias without SPONSORKIT_ prefix (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
kecrily authored Jan 12, 2023
1 parent 0dc214a commit 60e246c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ export function loadEnv(): Partial<SponsorkitConfig> {
github: {
login: process.env.SPONSORKIT_GITHUB_LOGIN || process.env.GITHUB_LOGIN || getDeprecatedEnv('SPONSORKIT_LOGIN', 'SPONSORKIT_GITHUB_LOGIN'),
token: process.env.SPONSORKIT_GITHUB_TOKEN || process.env.GITHUB_TOKEN || getDeprecatedEnv('SPONSORKIT_TOKEN', 'SPONSORKIT_GITHUB_TOKEN'),
type: process.env.SPONSORKIT_GITHUB_TYPE,
type: process.env.SPONSORKIT_GITHUB_TYPE || process.env.GITHUB_TYPE,
},
patreon: {
token: process.env.SPONSORKIT_PATREON_TOKEN,
token: process.env.SPONSORKIT_PATREON_TOKEN || process.env.PATREON_TOKEN,
},
opencollective: {
key: process.env.SPONSORKIT_OPENCOLLECTIVE_KEY || process.env.OPENCOLLECTIVE_KEY,
Expand Down

0 comments on commit 60e246c

Please sign in to comment.