From 3cc10e47540586a3a59a4134aa486f017c196c29 Mon Sep 17 00:00:00 2001 From: Peter Springsteen Date: Mon, 26 May 2025 18:52:05 +0000 Subject: [PATCH] reduce individual function sizes --- onboarding-assistant/serverless.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/onboarding-assistant/serverless.yml b/onboarding-assistant/serverless.yml index f4b3b9c..d2ec630 100644 --- a/onboarding-assistant/serverless.yml +++ b/onboarding-assistant/serverless.yml @@ -8,6 +8,10 @@ plugins: - serverless-plugin-warmup - serverless-wsgi +package: + individually: true + excludeDevDependencies: true + provider: iamRoleStatements: - @@ -47,11 +51,17 @@ functions: memorySize: 128 runtime: python3.12 timeout: 25 + package: + patterns: + - '!node_modules/**' # Exclude node_modules analytics: handler: analytics.event_worker memorySize: 128 runtime: python3.12 timeout: 25 + package: + patterns: + - '!node_modules/**' # Exclude node_modules events: events: - @@ -62,6 +72,9 @@ functions: memorySize: 128 runtime: python3.12 timeout: 25 + package: + patterns: + - '!node_modules/**' # Exclude node_modules interactivity: events: - @@ -75,6 +88,9 @@ functions: memorySize: 128 runtime: python3.12 timeout: 25 + package: + patterns: + - '!node_modules/**' # Exclude node_modules shortener: events: -