Skip to content

Commit

Permalink
Add hydrate per function config option
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger authored and ryanblock committed Oct 31, 2023
1 parent 60ba61b commit bfa1ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/autoinstall/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ function getRuntimeDirs (dirs, inventory, runtimeName) {
let runtimeDirs = dirs.filter(dir => {
let lambda = inventory.inv.lambdasBySrcDir[dir]
if (Array.isArray(lambda)) lambda = lambda[0] // Multi-tenant Lambda check
let { runtime } = lambda.config
if (runtime.startsWith(runtimeName)) return true
let { runtime, hydrate } = lambda.config
return runtime.startsWith(runtimeName) && hydrate !== false
})
return runtimeDirs
}

0 comments on commit bfa1ca0

Please sign in to comment.