From bfa1ca056e806530c9ae61f2839bc1838869bce3 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Fri, 27 Oct 2023 09:10:54 -0400 Subject: [PATCH] Add hydrate per function config option Fixes architect/architect#1456. --- src/actions/autoinstall/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/autoinstall/index.js b/src/actions/autoinstall/index.js index 511561e..eb00d8c 100644 --- a/src/actions/autoinstall/index.js +++ b/src/actions/autoinstall/index.js @@ -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 }