Skip to content

Commit

Permalink
fix(cli): add ignoreEnvVarErrors: true to getConfig call (#8572)
Browse files Browse the repository at this point in the history
Looks like we forgot to so that a long time ago, without it was throwing when env var was not set for example.
  • Loading branch information
Jolg42 committed Aug 4, 2021
1 parent dc71f9b commit 7c795e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/bin.ts
Expand Up @@ -193,6 +193,7 @@ async function main(): Promise<number> {
const schema = await getSchema(args['--schema'])
const config = await getConfig({
datamodel: schema,
ignoreEnvVarErrors: true,
})
if (config.datasources.length > 0) {
schemaProvider = config.datasources[0].provider
Expand Down

0 comments on commit 7c795e5

Please sign in to comment.