Skip to content

Commit

Permalink
fix: --arguments and ENVs were ignored if config.yaml is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Jul 13, 2024
1 parent 950c67f commit 09d1857
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export const configFile = watchLoad(filePath, text => {
}, {
failedOnFirstAttempt(){
console.log("No config file, using defaults")
setConfig({}, false)
setTimeout(() => // this is called synchronously, but we need to call setConfig after first tick, when all configs are defined
setConfig({}, false))
}
})

0 comments on commit 09d1857

Please sign in to comment.