Skip to content

Commit

Permalink
fix: add default env vars for api and oauth hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
duskpoet committed Feb 23, 2024
1 parent 8bec5a8 commit df4e089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ builder = builder
.option('api-host', {
describe: 'The API host',
hidden: true,
default: 'https://console.neon.tech/api/v2',
default: process.env.NEON_API_HOST ?? 'https://console.neon.tech/api/v2',
})
// Setup config directory
.option('config-dir', {
Expand All @@ -76,7 +76,7 @@ builder = builder
'oauth-host': {
description: 'URL to Neon OAuth host',
hidden: true,
default: 'https://oauth2.neon.tech',
default: process.env.NEON_OAUTH_HOST ?? 'https://oauth2.neon.tech',
},
'client-id': {
description: 'OAuth client id',
Expand Down

0 comments on commit df4e089

Please sign in to comment.